http://qs321.pair.com?node_id=417500


in reply to Rounding of a number...

One way is to just drop the trailing digits:

my $x = $yearlyamount / 52; $x =~ s/(\.\d\d)\d*$/$1/;