RoundingMode

Rounding modes.

@author Kai Burjack

Values

ValueMeaning
TRUNCATE0

Discards the fractional part.

CEILING1

Round towards positive infinity.

FLOOR2

Round towards negative infinity.

HALF_EVEN3

Round towards the nearest neighbor. If both neighbors are equidistant, round towards the even neighbor.

HALF_DOWN4

Round towards the nearest neighbor. If both neighbors are equidistant, round down.

HALF_UP5

Round towards the nearest neighbor. If both neighbors are equidistant, round up.

Meta