pickle broken: can't handle NaN or Infinity under win32
Grant Edwards
grante at visi.com
Wed Jun 22 22:54:06 EDT 2005
On 2005-06-23, Paul Rubin <http> wrote:
> Scott David Daniels <Scott.Daniels at Acm.Org> writes:
>> >>>Negative 0 isn't a NaN, it's just negative 0.
>> >>
>> >>Right, but it is hard to construct in standard C.
>> > Huh? It's just a hex constant.
>> Well, -0.0 doesn't work, and (double)0x80000000 doesn't work,
>> and.... I think you have to use quirks of a compiler to create
>> it. And I don't know how to test for it either, x < 0.0 is
>> not necessarily true for negative 0.
>
> Aren't we talking about IEEE 754 arithmetic?
Mainly, yes.
> There's some specific bit pattern(s) for -0.0 and you can
> assign a float variable to such a pattern.
Yup.
--
Grant Edwards grante Yow! My Aunt MAUREEN was
at a military advisor to IKE &
visi.com TINA TURNER!!
More information about the Python-list
mailing list