go ahead... be a heretic | |
PerlMonks |
Re^3: Answer: How do I round a number?by Roy Johnson (Monsignor) |
on Apr 27, 2005 at 18:32 UTC ( [id://452073]=note: print w/replies, xml ) | Need Help?? |
ceil should always round toward the right on a number line, so your ceil is correct. In fact, it's the same thing I came up with in Re^2: Perl oddities. Note merlyn's response, though.
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|