May be it’s worth to add isZero()
method to the Kotlin implementation of BigDecimal?
fun BigDecimal.isZero() = compareTo(BigDecimal.ZERO) == 0
(got the code from the How to check if BigDecimal variable == 0 in java? - Stack Overflow post)
May be it’s worth to add isZero()
method to the Kotlin implementation of BigDecimal?
fun BigDecimal.isZero() = compareTo(BigDecimal.ZERO) == 0
(got the code from the How to check if BigDecimal variable == 0 in java? - Stack Overflow post)