std::nan, std::nanf, std::nanl
De 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. |
Defined in header <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) | |
Convierte el definido por la implantación
arg
cadena de caracteres en el valor correspondiente tranquilo NaN. El std::nan("string") llamada es equivalente a la std::strtod("NAN(string)", (char**)NULL); llamada .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 | - | cadena de caracteres estrecho identificar el contenido de un NaN, o una cadena vacía
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
El valor NaN correspondiente a la
arg
cadena que identifica o cero si la aplicación no es compatible con NaNs tranquilas . 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] Ver también
(C++11) |
Comprueba si el número dado es 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. (función) |
[estático] |
devuelve un valor NaN tranquilo de lo dado tipo de punto flotante 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. (miembro estático público of std::numeric_limits función)
|