Skip to main content

MoneyRoundingMode

The possible ways to round an amount of money.

enum MoneyRoundingMode {
ROUND_CEILING
ROUND_DOWN
ROUND_FLOOR
ROUND_HALF_DOWN
ROUND_HALF_EVEN
ROUND_HALF_UP
ROUND_UP
}

Values​

MoneyRoundingMode.ROUND_CEILING​

Round towards positive infinity.

MoneyRoundingMode.ROUND_DOWN​

Round towards zero.

MoneyRoundingMode.ROUND_FLOOR​

Round towards negative infinity.

MoneyRoundingMode.ROUND_HALF_DOWN​

Round to the nearest value, and round halves towards zero.

MoneyRoundingMode.ROUND_HALF_EVEN​

Round to the nearest value, and round halves to the nearest even digit.

MoneyRoundingMode.ROUND_HALF_UP​

Round to the nearest value, and round halves away from zero.

MoneyRoundingMode.ROUND_UP​

Round away from zero.

Member Of​

PricingConfig object ● PricingConfigSetInput input