Tom Anderson <[EMAIL PROTECTED]> writes: > On Sun, 23 Oct 2005, Fredrik Lundh wrote: >> [EMAIL PROTECTED] wrote: >>> - ~== for approximate FP equality >> str(a) == str(b) > This is taken from the AIEEEEEEEE 754 standard, i take it? :) > > Seriously, that's horrible. Fredrik, you are a bad man, and run a bad > railway. > > However, looking at the page the OP cites, the only mention of that > operator i can find is in Dylan, and in Dylan, it's nothing to do with > approximate FP equality - it means 'not identical', which we can spell > "is not". > > What would approximate FP equality even mean? How approximate?
Hopefully user defined. Rexx has a global control that lets you set the number of digits to be considered significant in doing an FP equality test. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list