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

Big exponents should throw X::Numeric::Overflow instead of returning Inf (2**(9e9.Int)) #5125

Closed
p6rt opened this issue Feb 9, 2016 · 3 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Feb 9, 2016

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

Searchable as RT127493$

@p6rt
Copy link
Author

p6rt commented Feb 9, 2016

From @AlexDaniel

Some tests in S32-num/power.t are assuming that big int exponents should result in Inf. This, however, is not true anymore. It should throw X​::Numeric​::Exception (it is already so on moar).

Code​:
my $big-e = 4553535345364535345634543534;
say 2 ** $big-e

Result​:
Inf

Expected result​:
X​::Numeric​::Exception thrown.

See Raku/roast#96 for more info.

@p6rt
Copy link
Author

p6rt commented Dec 7, 2016

From @zoffixznet

Now fixed and closing per https://irclog.perlgeek.de/perl6-dev/2016-12-07#i_13700353

@p6rt
Copy link
Author

p6rt commented Dec 7, 2016

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

@p6rt p6rt closed this as completed Dec 7, 2016
@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant