Understanding BigDecimal operations in Kotlin

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Consider the following Kotlin code snippet, which includes several Bigdecimal operations:
val bigDecimal1 = BigDecimal(10) 
val bigDecimal2 = BigDecimal(2) 
val result = bigDecimal1.multiply(bigDecimal2).add(BigDecimal(5)).subtract(bigDecimal1)
With these operations, what would be the final value of the 'result' variable?
Select one option from the list

Create a free account to access the full topic