Because there are infinitely many fractions that are approximately equal to
273.15 (the float).
and because we want to have this property a=b & (a=c) ==> (b=c).

Nicolas

2015-05-27 5:00 GMT+02:00 Sean P. DeNigris <[email protected]>:

> Why does "1 = 1.0" but "273.15 ~= (5463/20)"? You must send #asFloat to the
> fraction to answer true...
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context:
> http://forum.world.st/Inconsistent-number-comparison-tp4828795.html
> Sent from the Pharo Smalltalk Developers mailing list archive at
> Nabble.com.
>
>

Reply via email to