I have two variable as below
var Price = 100;
var DiscountRate = 3;
I calculate percentage of Price variable
After the calculation process, the result looks like below
97
I want to reach 100 when I increase 3% from 97 afterwards.But when i increase the number 97 by 3%, i get a figure of 99
How can i do this by using javascript ?
Any help will be appreciated.