Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexfp overflow drops hi-order bits #15032

Closed
p5pRT opened this issue Nov 7, 2015 · 3 comments
Closed

hexfp overflow drops hi-order bits #15032

p5pRT opened this issue Nov 7, 2015 · 3 comments

Comments

@p5pRT
Copy link
Collaborator

@p5pRT p5pRT commented Nov 7, 2015

Migrated from rt.perl.org#126582 (status was 'resolved')

Searchable as RT126582$

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Nov 7, 2015

From @jhi

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.

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Nov 7, 2015

From @jhi

On Fri Nov 06 16​:53​:47 2015, jhi wrote​:

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

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Nov 7, 2015

@jhi - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.