17 Language support library [support] (original) (raw)
17.3 Implementation properties [support.limits]
17.3.4 Enum float_round_style [round.style]
namespace std { enum float_round_style { round_indeterminate = -1, round_toward_zero = 0, round_to_nearest = 1, round_toward_infinity = 2, round_toward_neg_infinity = 3 };}
The rounding mode for floating-point arithmetic is characterized by the values:
- round_indeterminateif the rounding style is indeterminable
- round_toward_zeroif the rounding style is toward zero
- round_to_nearestif the rounding style is to the nearest representable value
- round_toward_infinityif the rounding style is toward infinity
- round_toward_neg_infinityif the rounding style is toward negative infinity