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

Huaiyu Zhu hzhu at localhost.localdomain
Mon Jul 17 19:46:27 EDT 2000


On Mon, 17 Jul 2000 16:10:36 -0700, Russell E. Owen
<owen at astroNOJNK.washington.edu.invalid> wrote: 
>Does Python support any sort of floating point "not a number" (e.g. IEEE 
>infinity)?

This seems to work and is used in MatPy (taken from several replies I got here):

Inf = inf = 1e300**2
NaN = nan = inf - inf

Huaiyu
-- 
Huaiyu Zhu                       hzhu at users.sourceforge.net
Matrix for Python Project        http://MatPy.sourceforge.net 



More information about the Python-list mailing list