Know rounding

Report a typo

Match the operation and its result.

Match the items from left and right columns
val num = BigDecimal(-3.125).setScale(2, RoundingMode.FLOOR)
val num = BigDecimal(-3.125).setScale(2, RoundingMode.CEILING)
val num = BigDecimal(4.125).setScale(2, RoundingMode.HALF_UP)
val num = BigDecimal(4.125).setScale(2, RoundingMode.HALF_DOWN)
4.12
-3.13
4.13
-3.12
___

Create a free account to access the full topic