Syntax across languages

Mike Meyer mwm at mired.org
Sun Oct 23 20:59:46 EDT 2005


Tom Anderson <twic at urchin.earth.li> writes:
> On Sun, 23 Oct 2005, Fredrik Lundh wrote:
>> bearophileHUGS at lycos.com 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 <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list