Re: Accurate conversion of Num to Rat (and comparing Num and Rat)

2021-04-13 Thread sisyphus
Hi, Just replacing a garbled typo that began just below "When you throw in" with the text that should have been there. On Sun, Apr 11, 2021 at 11:24 PM sisyphus wrote: > > But I find the "logic" of what is going on here to be confusing. > > C:\_32>raku -e "say 1.8446744073709552e+19 == 184467440

Comparing Int and Num

2021-04-13 Thread sisyphus
Hi, C:\>raku -e "say 1.8446744073709552e+19 == 18446744073709551615" True I think I understand why raku deems this to be true. The LHS is 0x1p+64, which is identical to the double that the RHS rounds to. (AFAIK, it's the same with perl5 and C.) Of course, for all $x in the Int range of 18446744