On this page
std::float_round_style
Defined in header <limits> |
||
---|---|---|
|
Enumeration constants of type std::float_round_style
indicate the rounding style used by floating-point arithmetic whenever a result of an expression is stored in an object of a floating-point type. The values are:
Enumeration constants
Name | Definition |
---|---|
std::round_indeterminate |
Rounding style cannot be determined |
std::round_toward_zero |
Rounding toward zero |
std::round_to_nearest |
Rounding toward nearest representable value |
std::round_toward_infinity |
Rounding toward positive infinity |
std::round_toward_neg_infinity |
Rounding toward negative infinity |
See also
[static]
|
identifies the rounding style used by the type (public static member constant) |
(C++11)
|
floating-point rounding direction (macro constant) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/types/numeric_limits/float_round_style