[Solved] How to get a percentage in a given decimal value [closed]


This might solve your problem

discountedAmount = amountDue * discount / 100;

For eg.

amountDue = Rs. 700
discount = 10%
discountedAmount = Rs. 70

Amount to be paid = Rs. 700 - 70 = Rs. 630

3

solved How to get a percentage in a given decimal value [closed]