◐ Shell
clean mode source ↗

std::nan, std::nanf, std::nanl – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<cmath>

float nanf( const char* arg );

(seit C++11)

double nan( const char* arg );

(seit C++11)

long double nanl( const char* arg );

(seit C++11)

Konvertiert die Implementierung definiert Zeichenkette arg in die entsprechende ruhigen NaN Wert. Der Anruf std::nan("string") entspricht dem Anruf 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.

Parameter

arg -

schmale Zeichenfolge, die den Inhalt einer NaN oder einer leeren Zeichenfolge

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.

Rückgabewert

Der Wert NaN, die zur Identifizierung von String arg oder Null entspricht, wenn die Umsetzung nicht unterstützt ruhigen NaNs .

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.

Siehe auch

prüft, ob die angegebene Zahl ist 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.


(Funktion) [edit]

gibt einen ruhigen NaN Wert der gegebenen Fließkomma-Typ

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.


(public static Elementfunktion of std::numeric_limits) [edit]