Match the operation and its result.
BigDecimal
Know rounding
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.