Sdílet prostřednictvím


numeric_limits::quiet_NaN

Vrátí reprezentaci tichý typ není číslo (NAN).

static Type quiet_NaN( ) throw( );

Vrácená hodnota

Reprezentace tichý NAN typu.

Poznámky

Vrácená hodnota má význam pouze tehdy, pokud has_quiet_NaN je true.

Příklad

// 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;
}
  

Požadavky

Záhlaví:<omezení>

Obor názvů: std

Viz také

Referenční dokumentace

strstreambuf – třída