Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: calc percentage

by hdb (Monsignor)
on Mar 13, 2019 at 09:32 UTC ( #1231202=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1231202]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-05-25 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?