http://qs321.pair.com?node_id=1231202


in reply to calc percentage

5% is shorthand for 0.05. Therefore, 5% of 50000 is 0.05 * 50000 = 2500.

More generally: x% is shorthand for x/100. Therefore, x% of y is x / 100 * y.