Python cmath.nan Constant
Example
Print the value of nan:
    #Import cmath Library
import cmath 
# Print the value of nan
    print (cmath.nan)
  Try it Yourself »
Definition and Usage
The cmath.nan constant returns a floating-point nan (Not a Number) value. This value is not a legal number.
The nan constant is equivalent to float("nan")or 
math.nan.
Syntax
  
    cmath.nan
  
Technical Details
| Return Value: | A float value, nan (Not a Number) | 
|---|---|
| Python Version: | 3.6 | 
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.