Python cmath.nan Konstante
Beispiel
Drucken Sie den Wert von nan:
#Import cmath Library
import cmath
# Print the value of nan
print (cmath.nan)
Definition und Verwendung
Die cmath.nan
Konstante gibt einen Gleitkommawert nan (Not a Number) zurück. Dieser Wert ist keine gültige Zahl.
Die Konstante nan entspricht float("nan")
or
math.nan
.
Syntax
cmath.nan
Technische Details
Rückgabewert: | Ein float Wert, nan (keine Zahl) |
---|---|
Python-Version: | 3.6 |