"/a" is not "/a" ?

Robert Kern robert.kern at gmail.com
Mon Mar 9 18:02:52 CET 2009


On 2009-03-08 12:39, Mark Dickinson wrote:
> On Mar 7, 2:14 pm, Christian Heimes<li... at cheimes.de>  wrote:
>> Steven D'Aprano wrote:
>>> Yes. Floating point NANs are required to compare unequal to all floats,
>>> including themselves. It's part of the IEEE standard.
>> As far as I remember that's not correct. It's just the way C has
>> interpreted the standard and Python inherited the behavior. But you may
>> proof me wrong on that.
>
> Steven's statement sounds about right to me:  IEEE 754
> (the current 2008 version of the standard, which supersedes
> the original 1985 version that I think Robert Kern is
> referring to)

Yes.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list