Udostępnij za pośrednictwem


numeric_limits::has_quiet_NaN

Sprawdza, czy typ ma reprezentację cichej nie liczbą (NAN), który jest nonsignaling.

static const bool has_quiet_NaN = false;

Wartość zwracana

TRUE czy typu jej reprezentacji za cichy NAN; false Jeśli nie.

Uwagi

Cichy NAN jest kodowanie nie numer, który nie Sygnalizowanie swej obecności w wyrażeniu.Wartość zwracana jest true Jeśli is_iec559 jest true.

Przykład

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

using namespace std;

int main( )
{
   cout << "Whether float objects have quiet_NaN: "
        << numeric_limits<float>::has_quiet_NaN 
        << endl;
   cout << "Whether double objects have quiet_NaN: "
        << numeric_limits<double>::has_quiet_NaN 
        << endl;
   cout << "Whether long int objects have quiet_NaN: " 
        << numeric_limits<long int>::has_quiet_NaN 
        << endl;
}
  

Wymagania

Nagłówek:<limity>

Przestrzeń nazw: std

Zobacz też

Informacje

strstreambuf — Klasa