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

[ad_1]

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

[ad_2]

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