Just another Perl shrine | |
PerlMonks |
Re^2: Converting -4.84800000E+001 to -48.48 doesn't work... but 48.49 doesby syphilis (Archbishop) |
on Jan 05, 2017 at 22:44 UTC ( [id://1179041]=note: print w/replies, xml ) | Need Help?? |
The problem also seems related to Perl version, but I can't say why It's a known bug. For your particular example (on Win32, perl-5.22.0): -48.48 is being assigned correctly, but -4.848e1 is off by one ulp. These errors are not uncommon and can change between perl versions. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|