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

Large negative exponents no longer cause a numeric overflow exception (2**-999999) #5893

Closed
p6rt opened this issue Dec 18, 2016 · 5 comments
Closed
Labels
regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Dec 18, 2016

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

Searchable as RT130369$

@p6rt
Copy link
Author

p6rt commented Dec 18, 2016

From @AlexDaniel

Code​:
say 2**-999999

Result (2015.12 .. 2016.11)​:
Numeric overflow
  in block <unit> at /tmp/GYbmLKwQ4g line 1

Actually thrown at​:
in block <unit> at /tmp/GYbmLKwQ4g line 1

Result (HEAD)​:
0

I am not sure what is the best solution here, but I guess having an exception if the value is being zeroed is a good idea.

@p6rt
Copy link
Author

p6rt commented Dec 18, 2016

From @AlexDaniel

Ah, forgot to mention that bisectable points to rakudo/rakudo@cf05254

On 2016-12-18 03​:45​:44, alex.jakimenko@​gmail.com wrote​:

Code​:
say 2**-999999

Result (2015.12 .. 2016.11)​:
Numeric overflow
in block <unit> at /tmp/GYbmLKwQ4g line 1

Actually thrown at​:
in block <unit> at /tmp/GYbmLKwQ4g line 1

Result (HEAD)​:
0

I am not sure what is the best solution here, but I guess having an
exception if the value is being zeroed is a good idea.

@p6rt
Copy link
Author

p6rt commented Dec 18, 2016

From @zoffixznet

On Sun, 18 Dec 2016 03​:45​:44 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
say 2**-999999

Result (2015.12 .. 2016.11)​:
Numeric overflow
in block <unit> at /tmp/GYbmLKwQ4g line 1

Actually thrown at​:
in block <unit> at /tmp/GYbmLKwQ4g line 1

Result (HEAD)​:
0

I am not sure what is the best solution here, but I guess having an
exception if the value is being zeroed is a good idea.

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@7a642f865a
Test​: Raku/roast@522a9c7857

@p6rt
Copy link
Author

p6rt commented Dec 18, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 18, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 18, 2016
@p6rt p6rt added the regression Issue did not exist previously label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant