numeric_limits::min_exponent10
지 기지 10 해당 전원에 발생 하면 부동 소수점 형식을 유한 값으로 나타낼 수 있는 최대 음수 정수 계열 수를 반환 합니다.
static const int min_exponent10 = 0;
반환 값
최소 10 진수 정수 계열 음의 표현 형식.
설명
멤버 함수는 부동 소수점 형식에 대해서만 의미가 있습니다.min_exponent10 FLT_MIN_10_EXP 값 형식에 대 한 float.
예제
// numeric_limits_min_exponent10.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The minimum base 10 exponent for type float is: "
<< numeric_limits<float>::min_exponent10
<< endl;
cout << "The minimum base 10 exponent for type double is: "
<< numeric_limits<double>::min_exponent10
<< endl;
cout << "The minimum base 10 exponent for type long double is: "
<< numeric_limits<long double>::min_exponent10
<< endl;
}
요구 사항
헤더: <limits>
네임 스페이스: std