enum sap.ui.core.format.NumberFormat.RoundingMode

Visiblity: public
Available since: N/A
Module: sap/ui/core/format/NumberFormat
Application Component: CA-UI5-COR

Specifies a rounding behavior for numerical operations capable of discarding precision. Each rounding mode in this object indicates how the least significant returned digits of rounded result is to be calculated.


Properties Overview

Node Description
sap.ui.core.format.NumberFormat.RoundingMode.AWAY_FROM_ZERO

Rounding mode to round away from zero

sap.ui.core.format.NumberFormat.RoundingMode.CEILING

Rounding mode to round towards positive infinity

sap.ui.core.format.NumberFormat.RoundingMode.FLOOR

Rounding mode to round towards negative infinity

sap.ui.core.format.NumberFormat.RoundingMode.HALF_AWAY_FROM_ZERO

Rounding mode to round towards the nearest neighbor unless both neighbors are equidistant, in which case round away from zero.

sap.ui.core.format.NumberFormat.RoundingMode.HALF_CEILING

Rounding mode to round towards the nearest neighbor unless both neighbors are equidistant, in which case round towards positive infinity.

sap.ui.core.format.NumberFormat.RoundingMode.HALF_FLOOR

Rounding mode to round towards the nearest neighbor unless both neighbors are equidistant, in which case round towards negative infinity.

sap.ui.core.format.NumberFormat.RoundingMode.HALF_TOWARDS_ZERO

Rounding mode to round towards the nearest neighbor unless both neighbors are equidistant, in which case round towards zero.

sap.ui.core.format.NumberFormat.RoundingMode.TOWARDS_ZERO

Rounding mode to round towards zero