Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: strange rounding

by osunderdog (Deacon)
on Nov 29, 2004 at 15:24 UTC ( [id://410945]=note: print w/replies, xml ) Need Help??


in reply to Re: strange rounding
in thread strange rounding

I have found Math::Round a great package for rounding.

$perl -MMath::Round -e "print nearest(0.01, 3.14159)" 3.14

"Look, Shiny Things!" is not a better business strategy than compatibility and reuse.


OSUnderdog

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-20 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found