in reply to How do I round a number?
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.Use integer; $thevalue*=1;
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Answer: How do I round a number?
by Anonymous Monk on Sep 11, 2000 at 04:11 UTC |
In Section
Seekers of Perl Wisdom