Fraction equality and Float infinity problem
Andres Valloud
sqrmax at optonline.net
Thu Mar 30 03:18:23 UTC 2006
Hello Andreas,
Wednesday, March 29, 2006, 6:36:47 PM, you wrote:
AR> What about magnitude comparisons (<, >, <=, >=)? For example when
AR> using (perfectly well-defined) binary search algorithms on mixed
AR> number representations it may be more than merely convenient to
AR> have 2 = 2.0.
Well... you can use aFloat > 2.0 as well, and in this case expressing
intentions clearly would take just two extra characters. I find it
hard to justify lack of proper expression because of unwillingness to
type ".0". And besides it will be faster! :)
--
Best regards,
Andres mailto:sqrmax at optonline.net
More information about the Squeak-dev
mailing list
|