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 <sisyphus...@gmail.com> wrote:

>
> But I find the "logic" of what is going on here to be confusing.
>
> C:\_32>raku -e "say 1.8446744073709552e+19 == 18446744073709551615"
> True
>
> The LHS is a Num that exactly represents the base 2 integer
> value1000000000000000000000000000000000000000000000000000000000000000.
> The RHS is an Int that exactly represents the base 2 integer value
> 111111111111111111111111111111111111111111111111111111111111111.
> I am surprised that raku perpetuates the dumb perl5/C behaviour of
> asserting that those 2 values are equivalent.
>
> When you throw in:
>
> C:\_32>raku -e "say 1.8446744073709552e+19 == 18446744073709551614"
> True
>
> C:\_32>raku -e "say 18446744073709551615  == 18446744073709551614"
> False
>
> we're left with the confusion of knowing that we have an instance of A ==
> B && A == C, but B != C.
>

(The damn laptop I was using to write the post kept moving the print cursor
to random locations.)

Cheers,
Rob

Reply via email to