Round

The available rounding modes. For cumulative operations use the halfEven mode to prevent accumulation of errors. Otherwise, the halfUp and halfDown modes are satisfactory. The up, down, floor, and ceiling modes are also useful for some operations. General Decimal Arithmetic Specification, p. 13-14.

Values

ValueMeaning
none
halfEven
halfDown
halfUp
down
up
floor
ceiling

Meta