Numerical Constants
math.nan
Represent a floating-point result that is not a number. NaN does not compare equal to itself; use isnan to detect it.
Formal Syntax & Structure
python syntaxpython
math.nanReturn Value
float
The floating-point constant described above.
Working Example
Example Snippetpython
import mathprint(math.isnan(math.nan))