numeric_limits::tinyness_before

형식 값이 너무 작아이 반올림 하기 전에 정규화 된 값으로 나타낼 수 있는지 확인할 수 있습니다 여부를 테스트 합니다.

static const bool tinyness_before = false;

반환 값

true반올림 하기 전에 작은 값 종류를 검색할 수 있습니다 경우. false불가능 한 경우.

설명

형식 tinyness 감지할 수 있는 옵션으로 IEC 559 부동 소수점 표현에 포함 된 및 구현 일부 결과 영향을 줄 수 있습니다.

예제

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

using namespace std;

int main( )
{
   cout << "Whether float types can detect tinyness before rounding: "
        << numeric_limits<float>::tinyness_before
        << endl;
   cout << "Whether double types can detect tinyness before rounding: "
        << numeric_limits<double>::tinyness_before
        << endl;
   cout << "Whether long int types can detect tinyness before rounding: "
        << numeric_limits<long int>::tinyness_before
        << endl;
   cout << "Whether unsigned char types can detect tinyness before rounding: "
        << numeric_limits<unsigned char>::tinyness_before
        << endl;
}
  

요구 사항

헤더: <limits>

네임 스페이스: std

참고 항목

참조

strstreambuf Class