comparing nan "number"

Alexander Schmolck a.schmolck at gmx.net
Mon Dec 1 09:08:38 EST 2003


Boštjan Jerko <bostjan.jerko at mf.uni-lj.si> writes:

> Hello !
> 
> I need to know if the result of math formula is nan (Not a number). 
> How can I do that?

The only non-hacky way I know of is installing scipy and using scipy.isnan.

'as




More information about the Python-list mailing list