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

div doesn't work right on large int values #6041

Closed
p6rt opened this issue Feb 1, 2017 · 5 comments
Closed

div doesn't work right on large int values #6041

p6rt opened this issue Feb 1, 2017 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 1, 2017

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

Searchable as RT130686$

@p6rt
Copy link
Author

p6rt commented Feb 1, 2017

From @mscha

% perl6
To exit type 'exit' or '^D'

my int $i = 10**16;
10000000000000000
say $i;
10000000000000000
say $i div 4;
468729856
say $i / 4;
2500000000000000

This is on a 64-bit build, Rakudo Star 2017.01.

@p6rt
Copy link
Author

p6rt commented Feb 2, 2017

From @zoffixznet

PR with fix sent​: MoarVM/MoarVM#518

@p6rt
Copy link
Author

p6rt commented Feb 3, 2017

From @zoffixznet

On Tue, 31 Jan 2017 18​:58​:22 -0800, perl6@​mscha.org wrote​:

% perl6
To exit type 'exit' or '^D'

my int $i = 10**16;
10000000000000000
say $i;
10000000000000000
say $i div 4;
468729856
say $i / 4;
2500000000000000

This is on a 64-bit build, Rakudo Star 2017.01.

Thank you for the report. This is now fixed.

Rakudo fix​: rakudo/rakudo@c98b3a581f
NQP fix​: Raku/nqp@afab417317
MoarVM fix​: MoarVM/MoarVM@9258acaffd
Test​: Raku/roast@13535c7fb5

@p6rt
Copy link
Author

p6rt commented Feb 3, 2017

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

@p6rt p6rt closed this as completed Feb 3, 2017
@p6rt
Copy link
Author

p6rt commented Feb 3, 2017

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

@p6rt p6rt added the Bug 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