Home >>Python cmath Module >Python cmath.nan Constant

Python cmath.nan Constant

Python cmath.nan Constant

Python cmath.nan constant is used to return a floating-point nan (Not a Number) value. This value is not actually a legal number.

Syntax:
cmath.nan
Here is an example of Python cmath.nan constant:

import cmath
print (cmath.nan)

Output:
nan

No Sidebar ads