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 enough decimal numbers lose precision in Rakudo #2755

Closed
p6rt opened this issue May 8, 2012 · 5 comments
Closed

Large enough decimal numbers lose precision in Rakudo #2755

p6rt opened this issue May 8, 2012 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 8, 2012

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

Searchable as RT112822$

@p6rt
Copy link
Author

p6rt commented May 8, 2012

From @masak

<masak> r​: say 241025348275725.3352
<p6eval> rakudo 415791​: OUTPUT«241025348164334␤»
<masak> ah.
<masak> bug?
<colomon> absolutely
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented May 8, 2012

From @masak

On Tue May 08 14​:35​:44 2012, masak wrote​:

<masak> r​: say 241025348275725.3352
<p6eval> rakudo 415791​: OUTPUT«241025348164334␤»
<masak> ah.
<masak> bug?
<colomon> absolutely
* masak submits rakudobug

<jnthn> Is it not just different levels of precision when the Rat is
converted to a Num for printing?
<jnthn> Niecza normally gets a few more digits than Rakudo.
<masak> r​: say 241025348275725.3352.nude
<p6eval> rakudo 415791​: OUTPUT«301281685344656669 1250␤»
<masak> jnthn​: seems you're right.
<masak> $ dc
<masak> 4k
<masak> 301281685344656669 1250/ p
<masak> 241025348275725.3352
* jnthn wonders if Rakudo can't get itself a bit more precision somehow
though.
* masak adds these new findings to the ticket

@p6rt
Copy link
Author

p6rt commented May 8, 2012

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

@p6rt
Copy link
Author

p6rt commented May 13, 2012

From @moritz

Fixed now, and tested in t/spec/S32-num/rat.t

@p6rt
Copy link
Author

p6rt commented May 13, 2012

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

@p6rt p6rt closed this as completed May 13, 2012
@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