std::numeric_limits::radix
static const int radix; | | (until C++11) |
---|---|---|
static constexpr int radix; | | (since C++11) |
标准专业化
T | value of std::numeric_limits<T>::radix |
---|---|
/* non-specialized */ | 0 |
bool | 2 |
char | 2 |
signed char | 2 |
unsigned char | 2 |
wchar_t | 2 |
char16_t | 2 |
char32_t | 2 |
short | 2 |
unsigned short | 2 |
int | 2 |
unsigned int | 2 |
long | 2 |
unsigned long | 2 |
long long | 2 |
unsigned long long | 2 |
float | FLT_RADIX |
double | FLT_RADIX |
long double | FLT_RADIX |
另见
digits static | number of radix digits that can be represented without change (public static member constant) |
---|---|
min_exponent static | one more than the smallest negative power of the radix that is a valid normalized floating-point value (public static member constant) |
max_exponent static | one more than the largest integer power of the radix that is a valid finite floating-point value (public static member constant) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com