enum Number::RoundingMode
¶
Specifies rounding behaviour for numerical operations capable of discarding precision.
Members¶
TIES_EVEN = 0
¶
0
Rounds towards the nearest integer. If both neighboring integers are equidistant, rounds towards the even neighbor (Banker's rounding).
TIES_AWAY = 1
¶
1
Rounds towards the nearest integer. If both neighboring integers are equidistant, rounds away from zero.
TO_ZERO = 2
¶
2
Rounds towards zero (truncate).
TO_POSITIVE = 3
¶
3
Rounds towards positive infinity (ceil).
TO_NEGATIVE = 4
¶
4
Rounds towards negative infinity (floor).