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?