std::float_round_style

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:

# Declarations

enum float_round_style {
round_indeterminate = -1,
round_toward_zero = 0,
round_to_nearest = 1,
round_toward_infinity = 2,
round_toward_neg_infinity = 3
};

# See also