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 → Num conversion isn’t monotonous #6623
Comments
From @GrimyHow to reproduce perl6 -e 'my ($a, $b) = (0.777777777777777777777, Expected behavior Prints `Less Less`, or `Less Same`, depending on how rounding is done. Actual behavior Prints `Less More`. This seems inconsistent: $a is strictly smaller Version information This is Rakudo version 2017.09 built on MoarVM version 2017.09.1 This may be related to https://rt.perl.org/Public/Bug/Display.html?id=132313 |
From @zoffixznetOn Fri, 20 Oct 2017 07:34:04 -0700, victor.adam@derpymail.org wrote:
This appears to be not a bug but simply the goodness of floating point math. I get the same result in C: #include <stdio.h> // OUTPUT: More |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanShould the last word in the Subject be 'monotonic' rather than 'monotonous'? -- |
From @zoffixznetOn Fri, 20 Oct 2017 07:34:04 -0700, victor.adam@derpymail.org wrote:
Thank you for the report. This is now fixed (specifically, the Num version now gives "Same" as Fix: rakudo/rakudo@a760ac3cfc6426d9bd2fb00db On Fri, 20 Oct 2017 17:44:40 -0700, cpan@zoffix.com wrote:
You're wrong, 2017-Zoffix. The result you got in C is because you incorrectly used doubles to do the division. |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132329 (status was 'resolved')
Searchable as RT132329$
The text was updated successfully, but these errors were encountered: