ExactFloat.RoundingMode

Rounding modes. kRoundTiesToEven and kRoundTiesAwayFromZero both round to the nearest representable value unless two values are equally close. In that case kRoundTiesToEven rounds to the nearest even value, while kRoundTiesAwayFromZero always rounds away from zero.

Values

ValueMeaning
ROUND_TIES_TO_EVEN
ROUND_TIES_AWAY_FROM_ZERO
ROUND_TOWARD_ZERO
ROUND_AWAY_FROM_ZERO
ROUND_TOWARD_POSITIVE
ROUND_TOWARD_NEGATIVE

Meta