Front page | perl.perl6.users |
Postings from July 2020
From: Aureliano Guedes
July 9, 2020 15:27
Message ID: CAG9gabRPJXL8Uevxn6U=ZverHJ3HF8X9rmvCFc84nLF+nCTvzg@mail.gmail.com
A quick question.
This is expected?
raku -e 'say 9 ** (1/3)'
Why do I'm asking this?
I know about the computational floating problem and I also know that the
Raku deal with rational whenever it is possible and store numbers as
expressions (actually I don't know if there are more details). That's why
0.2 + 0.1 == 0.3 in Raku returns True whilst in other languages like
Python, Perl5, and Ruby return False.
Then, I was just playing around and I'd like to check if it is expected.
contato: (11) 94292-6110
by Aureliano Guedes