Home >>Python cmath Module >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.nanHere is an example of Python cmath.nan constant:
import cmath
print (cmath.nan)