Depending on your starting value, sometimes the little tiny differences round to a value that Perl's default stringification will print differently than your expected precision, and sometimes they won't.
If you want consistent precision in output, use sprintf or printf
In reply to Re^3: Floating point issue
by pryrt
in thread Floating point issue
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |