http://www.perlmonks.org?node_id=218205


in reply to Different way of rounding

I would multiple by 100, then use the POSIX::ceil function.
use POSIX qw(ceil); my $rounded = ceil($i*100) / 100;
Tiago