Do you expect something else? The result appears to be correct. Please note that, when dealing with square or cubic roots, Raku will not use rationals, but ordinary floats.
Le jeu. 9 juil. 2020 à 17:27, Aureliano Guedes <guedes.aureli...@gmail.com> a écrit : > Hi all, > > A quick question. > > This is expected? > > raku -e 'say 9 ** (1/3)' > 2.080083823051904 > > > 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. > > Thanks > > > -- > Aureliano Guedes > skype: aureliano.guedes > contato: (11) 94292-6110 > whatsapp +5511942926110 >