Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Math::round not rounding correctly

by jmlynesjr (Deacon)
on Dec 23, 2014 at 20:03 UTC ( [id://1111222]=note: print w/replies, xml ) Need Help??


in reply to Math::round not rounding correctly

In the old FORTRAN days we added .5 then truncated.

James

There's never enough time to do it right, but always enough time to do it over...

Replies are listed 'Best First'.
Re^2: Math::round not rounding correctly
by ikegami (Patriarch) on Dec 23, 2014 at 21:15 UTC

    That won't help. It will also round 3461.4999999999995 down.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-25 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found