develooper Front page | perl.perl6.users | Postings from June 2020

why so different

Thread Next
Aureliano Guedes
June 22, 2020 20:37
why so different
Message ID:
Hi all,

First, I'm naive in Raku. Then let's go to my question.

I'm trying to figure out why we got so different results here:

> e.Rat()**(pi.Rat()*i)
> e**(pi*i)
> e.Rat()**(pi.Rat()*i) == e**(pi*i)

I understand the Num actually have the traditional behavior which leads
0.1.Num() + 0.2.Num() != 0.3.Num()

And Rat is awesome cos deal nice to the real world.

Anyway, I do not expect so different results between Rat and Num.

Aureliano Guedes

Aureliano Guedes
skype: aureliano.guedes
contato:  (11) 94292-6110
whatsapp +5511942926110

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About