Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Rounding off numbers

by Tanalis (Curate)
on Apr 20, 2006 at 14:22 UTC ( #544607=note: print w/ replies, xml ) Need Help??


in reply to Rounding off numbers

I always liked

$int = sprintf "%.0f", $float;
which rounds things off nicely.


Comment on Re: Rounding off numbers
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2014-09-02 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (20 votes), past polls