Python cmath.nan Constante
Exemple
Imprimer la valeur de nan :
#Import cmath Library
import cmath
# Print the value of nan
print (cmath.nan)
Définition et utilisation
La cmath.nan
constante renvoie une valeur nan (Pas un nombre) à virgule flottante. Cette valeur n'est pas un nombre légal.
La constante nan est équivalente à float("nan")
ou
math.nan
.
Syntaxe
cmath.nan
Détails techniques
Valeur de retour : | Une float valeur, nan (pas un nombre) |
---|---|
Version Python : | 3.6 |