Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Rounding off numbers

by sgifford (Prior)
on Apr 20, 2006 at 14:37 UTC ( #544615=note: print w/replies, xml ) Need Help??


in reply to Re^2: Rounding off numbers
in thread Rounding off numbers

Adding 0.5 before the int, as in the above example, solves that.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2020-12-05 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?