POSIX::ceil:perldoc -q round
use warnings; use strict; use POSIX; for (3.3, 3.6, 3003.3) { print $_, "\t", ceil($_), "\n"; } __END__ 3.3 4 3.6 4 3003.3 3004
In reply to Re: how to always round up in perl?
by toolic
in thread how to always round up in perl?
by cburger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |