numeric_limits::has_quiet_NaN

Nonsignaling는 숫자가 아닌 (NAN)는 자동 모드에 대 한 표현 형식이 있는지 여부를 테스트 합니다.

static const bool has_quiet_NaN = false;

반환 값

true 경우는 유형 자동 NAN;에 대 한 표현 했습니다 false 이면 하지 않으면.

설명

Quiet NAN은 어떤 식으로 자신의 존재를 알리지 않는 숫자에 대 한 인코딩입니다.반환 값이 true 경우 is_iec559 값은 true입니다.

예제

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

요구 사항

헤더: <limits>

네임 스페이스: std

참고 항목

참조

strstreambuf Class