numeric_limits::signaling_NaN
형식에 대 한 신호는 없습니다 (NAN) 숫자의 표시를 반환 합니다.
static Type signaling_NaN( ) throw( );
반환 값
형식에 대 한 신호 NAN의 표현입니다.
설명
의미 있는 반환 값인 경우에만 has_signaling_NaN 입니다 true.
예제
// numeric_limits_signaling_nan.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The signaling NaN for type float is: "
<< numeric_limits<float>::signaling_NaN( )
<< endl;
cout << "The signaling NaN for type int is: "
<< numeric_limits<int>::signaling_NaN( )
<< endl;
cout << "The signaling NaN for type long double is: "
<< numeric_limits<long double>::signaling_NaN( )
<< endl;
}
샘플 출력
다음 출력 x 86입니다.
The signaling NaN for type float is: 1.#QNAN
The signaling NaN for type int is: 0
The signaling NaN for type long double is: 1.#QNAN
요구 사항
헤더: <limits>
네임 스페이스: std