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

2021-04-06 Thread Ralph Mellor
> 1/10 == 1e1 # True > > Aiui this is correct (and to me intuitive) behaviour described here: Except A) that's not what the doc says, and B) how does one compare numbers *without* infection, if that's what's going on? So it probably makes sense to ignore at least that part of my previous email.

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

2021-04-06 Thread Ralph Mellor
On Tue, Apr 6, 2021 at 11:54 AM sisyphus wrote: > 1/10 == 1e1 # True Aiui this is correct (and to me intuitive) behaviour described here: https://docs.raku.org/language/numerics#Numeric_infectiousness So if there's a `Num` (float) in a numeric operation (like `==`) then any other number

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

2021-04-06 Thread sisyphus
On Tue, Apr 6, 2021 at 11:09 AM sisyphus wrote: > [snip] > Is there behaviour in other languages (eg python ?) that supports this > approach that raku has taken ? > > I'm as unfamiliar with python3 as I am with raku, but it seems to me that python3 takes the approach that makes better sense to