Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How do I round a number?by Nimster (Sexton) |
on Jul 26, 2000 at 09:46 UTC ( [id://24417]=note: print w/replies, xml ) | Need Help?? |
How about
Seems the simplest, IMHO. It rounds everything down, btw - so it acts kinda like 'div' in PASCAL. That's where it's useful. For rounding to the nearest, use any of the above.
In Section
Seekers of Perl Wisdom
|
|