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.

Replies are listed 'Best First'.
Re^2: calc percentage
by bigup401 (Pilgrim) on Mar 13, 2019 at 09:46 UTC

    thanks, this has given me much idea