I have found Math::Round a great package for rounding.
$perl -MMath::Round -e "print nearest(0.01, 3.14159)" 3.14
In reply to Re^2: strange rounding
by osunderdog
in thread strange rounding
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |