in reply to Re^2: Floating point issue
in thread Floating point issue
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
|
|---|