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
Rat.Str incorrectly rounds in the part after the decimal dot #4524
Comments
From @moritz14:16 < moritz> m: say 0.9999999999999999999999.Str Clearly this is wrong. If the intent is to round up, it should produce The Rat object itself is constructed correctly: 14:16 < moritz> m: say 0.9999999999999999999999.nude |
From zefram@fysh.orgThe same Rat gets a different wrong output from .perl: $ ./perl6 -e 'say 0.9999999999999999999999.perl' This too is rounding the first decimal place to ten, but expressing the -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetSame issue exists with base: <ZoffixW> m: say 0.9999999999999999999999.base: 10 |
From @zoffixznetOn Tue, 08 Sep 2015 05:22:21 -0700, moritz.lenz@gmail.com wrote:
Thanks for the report. PS.: the .perl not roundtripping correctly was fixed as well in the above commit. |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126016 (status was 'resolved')
Searchable as RT126016$
The text was updated successfully, but these errors were encountered: