hello

i want to calculate discount in my application.

if the user enters 10 % for an item that costs 532 then i am able to calculate the discount amount of 53.20 and the value as 478.8

if the discount amount is entered like 50 then i have to calculate the discount % and display it. i know it may not be exact but i have to display as 9.85 % like that.

what to do?
__________________
regards
sridhar

OK

This you got:)
532 * 0.1 = 53.20
532 - 53.20 = 478.8

To work out the discount %
50 / 532 * 100 = 9.398...%

Hope that helps