Skip Menu |
Report information
Id: 126582
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: jhi <jhi [at] iki.fi>
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: 5.22.0
Fixed In: (no value)



Subject: hexfp overflow drops hi-order bits
Download (untitled) / with headers
text/plain 296b
5.22.0, or bleadperl as of f99896c-ish: $ ./perl -wle 'print 0x111.0000000000000p+0' Hexadecimal float: mantissa overflow at -e line 1. 273 $ ./perl -wle 'print 0x111.00000000000000p+0' Hexadecimal float: mantissa overflow at -e line 1. 17 The 273 got shifted left by the 13th (ta-dah!) zero.
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 458b
On Fri Nov 06 16:53:47 2015, jhi wrote: Show quoted text
> 5.22.0, or bleadperl as of f99896c-ish: > > $ ./perl -wle 'print 0x111.0000000000000p+0' > Hexadecimal float: mantissa overflow at -e line 1. > 273 > $ ./perl -wle 'print 0x111.00000000000000p+0' > Hexadecimal float: mantissa overflow at -e line 1. > 17 > > The 273 got shifted left by the 13th (ta-dah!) zero.
Now committed http://perl5.git.perl.org/perl.git/commitdiff/0c8adad77d308bd7d386922521a57b894a2bf959


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org