Does Python have "not a number" floating point values?

Warren B. Focke moron at Glue.umd.edu
Thu Jul 20 23:08:09 EDT 2000


Huaiyu Zhu:

>According to discussions on comp.lang.python, there is no universal
>way to treat NaN, but the following codes work on Windows (NT and 98),
>Solaris (2.7 with gcc) and Linux (RH6.1 with egcs).

There is an fpectl module in the standard distribution.  It's not
built by default, and doesn't support all systems, and all it does at
the moment is make this stuff NOT work on the systems it supports, but
interested parties might be able to fix [some of] these issues.

Warren Focke
-- 
If you feel that you have both feet planted on level ground, then the
university has failed you. -Robert Goheen, President, Princeton University



More information about the Python-list mailing list