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.
In Section
Seekers of Perl Wisdom
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.