Freigeben über


numeric_limits::quiet_NaN

Gibt der Darstellung einer Ruhe keine Zahl (NAN) für den Typ zurück.

static Type quiet_NaN( ) throw( );

Rückgabewert

Die Darstellung eines noch NAN für den Typ.

Hinweise

Der Rückgabewert ist sinnvoll, wenn has_quiet_NaNtrue ist.

Beispiel

// numeric_limits_quiet_nan.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>

using namespace std;

int main( )
{
   cout << "The quiet NaN for type float is:  "
        << numeric_limits<float>::quiet_NaN( )
        << endl;
   cout << "The quiet NaN for type int is:  "
        << numeric_limits<int>::quiet_NaN( )
        << endl;
   cout << "The quiet NaN for type long double is:  "
        << numeric_limits<long double>::quiet_NaN( )
        << endl;
}
  

Anforderungen

Grenzen Header: <>

Namespace: std

Siehe auch

Referenz

strstreambuf-Klasse