in reply to Re^2: how to always round up in perl?
in thread how to always round up in perl?

They also fail with negative non-integers.
perl -MPOSIX=ceil -e "$n=-2.1; print($n, ' POSIX: ', ceil($n))" # -2.1 POSIX: -2 perl -e "$n=-2.1; print($n, ' other: ', int($n) + ($n != int($n)))" # -2.1 other: -1