std::float_round_style - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::float_round_style

From cppreference.com
< cpp‎ | types‎ | numeric limits

Defined in header `<limits>` |  |
enum float_round_style { round_indeterminate = -1, round_toward_zero = 0, round_to_nearest = 1, round_toward_infinity = 2, round_toward_neg_infinity = 3 }; |  |

Enumeration constants of type std::float_round_style indicate the rounding style used by floating-point arithmetics whenever a result of an expression is stored in an object of a floating-point type. The values are:

### [edit] 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

### [edit] See also

round_style [static] | identifies the rounding style used by the type (public static member constant) [edit]
FE_DOWNWARDFE_TONEARESTFE_TOWARDZEROFE_UPWARD (C++11) | floating-point rounding direction (macro constant) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/types/numeric_limits/float_round_style&oldid=59402"