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