Python math.nan costante
Esempio
Stampa il valore di nan:
# Import math Library
import math
# Print the value of nan
print (math.nan)
Definizione e utilizzo
La math.nan
costante restituisce un valore nan (non un numero) a virgola mobile. Questo valore non è un numero legale.
La costante nan è equivalente a float('nan')
.
Sintassi
math.nan
Dettagli tecnici
Valore di ritorno: | Un float valore, nan (non un numero) |
---|---|
Versione Python: | 3.5 |