std::numeric_limits<T>:: min_exponent10
|
static
const
int
min_exponent10
;
|
(C++11まで) | |
|
static
constexpr
int
min_exponent10
;
|
(C++11以降) | |
std::
numeric_limits
<
T
>
::
min_exponent10
の値は、浮動小数点型
T
の正規化された有効な値として
10
n
が表現できる最小の負の整数
n
である。
標準特殊化
T
|
std:: numeric_limits < T > :: min_exponent10 の値 |
| /* non-specialized */ | 0 |
| bool | 0 |
| char | 0 |
| signed char | 0 |
| unsigned char | 0 |
| wchar_t | 0 |
| char8_t (C++20以降) | 0 |
| char16_t (C++11以降) | 0 |
| char32_t (C++11以降) | 0 |
| short | 0 |
| unsigned short | 0 |
| int | 0 |
| unsigned int | 0 |
| long | 0 |
| unsigned long | 0 |
| long long (C++11以降) | 0 |
| unsigned long long (C++11以降) | 0 |
| float | FLT_MIN_10_EXP |
| double | DBL_MIN_10_EXP |
| long double | LDBL_MIN_10_EXP |
例
float
型における
min_exponent
,
min_exponent10
,
min()
, および
radix
の関係を示します:
#include <iostream> #include <limits> int main() { std::cout << "min() = " << std::numeric_limits<float>::min() << '\n' << "min_exponent10 = " << std::numeric_limits<float>::min_exponent10 << '\n' << std::hexfloat << '\n' << "min() = " << std::numeric_limits<float>::min() << '\n' << "min_exponent = " << std::numeric_limits<float>::min_exponent << '\n'; }
出力:
min() = 1.17549e-38 min_exponent10 = -37 min() = 0x1p-126 min_exponent = -125
関連項目
|
[static]
|
正規化浮動小数点値として有効な基数の最小負べき乗より1大きい値
(public static member constant) |
|
[static]
|
有限浮動小数点値として有効な基数の最大整数べき乗より1大きい値
(public static member constant) |
|
[static]
|
有限浮動小数点値として有効な10の最大整数べき乗
(public static member constant) |