Welcome to the Monastery | |
PerlMonks |
Re^3: Rounding off numbersby sgifford (Prior) |
on Apr 20, 2006 at 14:37 UTC ( [id://544615]=note: print w/replies, xml ) | Need Help?? |
Adding 0.5 before the int, as in the above example, solves that.
In Section
Seekers of Perl Wisdom
|
|