in reply to Re: strange roundingin thread strange rounding
I have found Math::Round a great package for rounding.
$perl -MMath::Round -e "print nearest(0.01, 3.14159)" 3.14 [download]