Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Math::round not rounding correctly

by Corion (Patriarch)
on Dec 23, 2014 at 19:35 UTC ( [id://1111214]=note: print w/replies, xml ) Need Help??


in reply to Math::round not rounding correctly

Have you read the Standard Floating-Point Disclaimer, as is part of Math::Round?

Your situation may be one where it applies.

POSIX::ceil and POSIX::floor don't do rounding, they truncate towards an integer number. Maybe you can explain what results you expect and what results you get. Also, please supply code and data we can use to easily replicate your situation.

Replies are listed 'Best First'.
Re^2: Math::round not rounding correctly
by bulrush (Scribe) on Dec 23, 2014 at 19:58 UTC
    Updated original post with edit 2.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found