2015-05-27 11:00 GMT+02:00 Nicolas Cellier < [email protected]>:
> 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 > > Also because it's good to know that 1/10 ~= 0.1 But maybe the question is why 1=1.0 ? Because we want to have the numbers sortable... Would 1<1.0 or 1>1.0 be better? If you can't compare, then be prepared to change hierarchy (what's the sole purpose of Magnitude) and also rewrite a lot of code... 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. >> >> >
