float_round_style

float_round_style

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 enumeration describes the various methods that an implementation can choose for rounding a floating-point value to an integer value:

  • round_indeterminate -- rounding method cannot be determined
  • round_toward_zero -- round toward zero
  • round_to_nearest -- round to nearest integer
  • round_toward_infinity -- round away from zero
  • round_toward_neg_infinity -- round to more negative integer