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

X::Numeric::Overflow is not thrown on OS X (big exponents) #5127

Closed
p6rt opened this issue Feb 9, 2016 · 4 comments
Closed

X::Numeric::Overflow is not thrown on OS X (big exponents) #5127

p6rt opened this issue Feb 9, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 9, 2016

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

Searchable as RT127500$

@p6rt
Copy link
Author

p6rt commented Feb 9, 2016

From @AlexDaniel

The problem is that 2**4553535345364535345634543534 returns 1 on OS X.

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

Result (MoarVM on Linux)​:
Numeric overflow
  in block <unit> at ./test.p6 line 3

Actually thrown at​:
  in block <unit> at ./test.p6 line 3

Result (MoarVM on OS X)​:
1

Obviously, 1 is blatantly wrong.

Relevant test changes​: Raku/roast@ccff90d (which comes from this pull request​: Raku/roast#96)

If you look at other tests in power.t you will see that there are some other tests that work differently on OS X. It seems like it is associated with the same problem. (https://github.com/perl6/roast/blob/master/S32-num/power.t)

@p6rt
Copy link
Author

p6rt commented Aug 25, 2016

@coke - Status changed from 'new' to 'open'

@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 'open' to 'resolved'

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

No branches or pull requests

1 participant