note
philipbailey
<p>Or if you do not want to import a mass of functions into your namespace from the POSIX module, just do this:</p>
<c>my $n = 3.3;
my $ceiling = int($n + 1);</c>
<p>(Update) Above is incorrect, as pointed out by others. This works:</p>
<c>my $ceiling = ($n == int $n) ? $n : int($n + 1);</c>
890101
890101