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
exponentiation overflows to 0 under MoarVM #4372
Comments
From @b2gills $ perl6-m -e 'say 10 ** 10 ** 10' While it does come to the conclusion very quickly, the result doesn't make any sense. The JVM backend at least returns a sensible value, even if it does take $ perl6-j -e 'say 10 ** 10 ** 10' |
From @zoffixznetOn Wed, 01 Jul 2015 13:22:39 -0700, brad wrote:
This now throws on MoarVM, but on JVM still gives Inf.... Does the result need to be the same? <ZoffixW> r: say 10 ** 10000000000 |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetOn Fri, 18 Nov 2016 10:20:43 -0800, cpan@zoffix.com wrote:
Actually, I spot more inconsistencies between the way our math ops behave. For example `*` returns Inf instead of throwing on overflow. So does the `**` on other numerics, BUT it throws on underflow instead, but the Int `**` just gives the division-by-zero error: IRC: https://irclog.perlgeek.de/perl6-dev/2016-11-18#i_13591836 18:17 viki r: say 10 ** 10 ** 10 |
Migrated from rt.perl.org#125524 (status was 'open')
Searchable as RT125524$
The text was updated successfully, but these errors were encountered: