On 2005-06-22, Paul Rubin <http> wrote: >>> 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.
Yup. There are two ways to construct a NaN. One is to do something like (1e300*1e300)/(1e300*1e300) and hope for the best. The other is to assume IEEE 754 just use 7f800000 or 7fc00000 depending on whether you want a signalling or quiet NaN. -- Grant Edwards grante Yow! Don't hit me!! I'm in at the Twilight Zone!!! visi.com -- http://mail.python.org/mailman/listinfo/python-list