Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Floating point problems

by toma (Vicar)
on Oct 24, 2010 at 07:24 UTC ( [id://867021] : note . print w/replies, xml ) Need Help??


in reply to Floating point problems

Instead of int(), I prefer to use one of the functions in Math::Round.
It should work perfectly the first time! - toma