static const int min_exponent;
(until C++11)static constexpr int min_exponent;
(since C++11)The value of std::numeric_limits<T>::min_exponent is the lowest negative number n such that \(\scriptsize r^{n-1}\)rn-1
, where r is std::numeric_limits<T>::radix, is a valid normalized value of the floating-point type T
.
T
value of std::numeric_limits<T>::min_exponent /* non-specialized */ â0â bool â0â char â0â signed char â0â unsigned char â0â wchar_t â0â char8_t (since C++20) â0â char16_t (since C++11) â0â char32_t (since C++11) â0â short â0â unsigned short â0â int â0â unsigned int â0â long â0â unsigned long â0â long long (since C++11) â0â unsigned long long (since C++11) â0â float FLT_MIN_EXP double DBL_MIN_EXP long double LDBL_MIN_EXP [edit] Example
Demonstrates the relationships of min_exponent
, min_exponent10, min(), and radix for the type float:
Output:
min() = 1.17549e-38 min_exponent10 = -37 min() = 0x1p-126 min_exponent = -125[edit] See also the radix or integer base used by the representation of the given type
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4