std::numeric_limits<T>::round_style
From cppreference.com
< cpp | types | numeric limits
static const std::float_round_style round_style; |
(until C++11) | |
static constexpr std::float_round_style round_style; |
(since C++11) | |
The value of std::numeric_limits<T>::round_style identifies the rounding style used by the floating-point type T
whenever a value that is not one of the exactly repesentable values of T
is stored in an object of that type.
Contents |
[edit] Standard specializations
T
|
value of std::numeric_limits<T>::round_style |
/* non-specialized */ | std::round_toward_zero |
bool | std::round_toward_zero |
char | std::round_toward_zero |
signed char | std::round_toward_zero |
unsigned char | std::round_toward_zero |
wchar_t | std::round_toward_zero |
char8_t (since C++20) | std::round_toward_zero |
char16_t (since C++11) |