It's still pretty easy to write ceil and floor:
sub ceil { my $n = shift; int($n) + ($n > int($n)); } sub floor { my $n = shift; int($n) - ($n < int($n)); }
In reply to Re^2: Perl oddities
by Roy Johnson
in thread Perl oddities
by brian_d_foy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |