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

Int**Int yields bogus overflow #5814

Open
p6rt opened this issue Nov 23, 2016 · 2 comments
Open

Int**Int yields bogus overflow #5814

p6rt opened this issue Nov 23, 2016 · 2 comments

Comments

@p6rt
Copy link

p6rt commented Nov 23, 2016

Migrated from rt.perl.org#130153 (status was 'new')

Searchable as RT130153$

@p6rt
Copy link
Author

p6rt commented Nov 23, 2016

From zefram@fysh.org

2e0**-1019
1.78005908680576e-307
2e0**-1020
8.90029543402881e-308
2**-1019
1.78005908680576e-307
2**-1020
Numeric overflow
  in block <unit> at <unknown file> line 1

The result for 2**-1020 is bogus. The exact value of the operation
is representable in the Num type, as was used to represent the result
of 2**-1019.

-zefram

@p6rt
Copy link
Author

p6rt commented Nov 24, 2016

From @zoffixznet

MoarVM PR fixing this sent​: MoarVM/MoarVM#442

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

No branches or pull requests

1 participant