So it seems a quick and dirty hack would be to sprintf the number and then round the string? :)$ perl -e 'printf "%.10f\n%.30f\n", 3010*1.15, 3010*1.15' 3461.5000000000 3461.499999999999545252649113535881
In reply to Re: Math::round not rounding correctly
by Anonymous Monk
in thread Math::round not rounding correctly
by bulrush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |