Python cmath.nan Constant

cmath Methods : Print the value of nan

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