numeric_limits::denorm_min
작은 0이 아닌 반환 값 비 정규화 된.
static Type denorm_min( ) throw( );
반환 값
작은 0이 아닌 정규화 되지 않은 값입니다.
설명
long double동일 이중 C++ 컴파일러.
최소값은 동일한 형식에 대해 반환으로 분 경우 has_denorm 같지 않음 denorm_present.
예제
// numeric_limits_denorm_min.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The smallest nonzero denormalized value\n for float "
<< "objects is: " << numeric_limits<float>::denorm_min( )
<< endl;
cout << "The smallest nonzero denormalized value\n for double "
<< "objects is: " << numeric_limits<double>::denorm_min( )
<< endl;
cout << "The smallest nonzero denormalized value\n for long double "
<< "objects is: " << numeric_limits<long double>::denorm_min( )
<< endl;
// A smaller value will round to zero
cout << numeric_limits<float>::denorm_min( )/2 <<endl;
cout << numeric_limits<double>::denorm_min( )/2 <<endl;
cout << numeric_limits<long double>::denorm_min( )/2 <<endl;
}
요구 사항
헤더: <limits>
네임 스페이스: std