Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: calc percentage

by hdb (Monsignor)
on Mar 13, 2019 at 09:32 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-24 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found