std::nan, std::nanf, std::nanl
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido no cabeçalho <cmath>
|
||
float nanf( const char* arg ); |
(desde C++11) | |
double nan( const char* arg ); |
(desde C++11) | |
long double nanl( const char* arg ); |
(desde C++11) | |
Converte a aplicação definida
arg
seqüência de caracteres para o valor correspondente NaN silencioso. O std::nan("string") chamada é equivalente ao std::strtod("NAN(string)", (char**)NULL); chamada.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.
[editar] Parâmetros
arg | - | cadeia de caracteres estreita identificar o conteúdo de um NaN, ou uma string vazia
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. |
[editar] Valor de retorno
O valor NaN que corresponde ao
arg
string de identificação ou zero se a implementação não suporta NaNs tranquilos. 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.
[editar] Veja também
(C++11) |
Verifica se o número dado é 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. (função) |
[estática] |
retorna um valor NaN tranquila do determinado tipo de ponto flutuante 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. (of std::numeric_limits função public static membro)
|