Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 imbibing at the Monastery: (10)
As of 2014-12-22 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls