std::nan, std::nanf, std::nanl
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cmath> | ||
float nanf(constchar* arg ); | (dal C++11) | |
double nan(constchar* arg ); | (dal C++11) | |
longdouble nanl(constchar* arg ); | (dal C++11) | |
Converte l'implementazione definita
arg
stringa di caratteri nel corrispondente valore tranquilla NaN. Il std::nan("string") chiamata è equivalente alla chiamata std::strtod("NAN(string)", (char**)NULL);.Original:
Converts the implementation-defined character string
arg
into the corresponding quiet NaN value. The call std::nan("string") is equivalent to the call std::strtod("NAN(string)", (char**)NULL);.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Parametri
arg | - | stringa di caratteri narrow identifica il contenuto di un NaN, o una stringa vuota Original: narrow character string identifying the contents of a NaN, or an empty string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Valore di ritorno
Il valore NaN corrispondente alla
arg
stringa che identifica o zero se l'implementazione non supporta NaN tranquille. Original:
The NaN value that corresponds to the identifying string
arg
or zero if the implementation does not support quiet NaNs. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Vedi anche
(C++11) | controlla se il numero dato è NaN Original: checks if the given number is NaN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
[statico] | restituisce un valore NaN tranquilla di un dato tipo a virgola mobile Original: returns a quiet NaN value of the given floating-point type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico statico) |