Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-26 16:02:30 +04:00
parent cdc3f78320
commit ae42c238d3
13 changed files with 276 additions and 177 deletions

View file

@ -7,4 +7,6 @@ import java.math.BigDecimal
*
* If `BigDecimal?` is `null`, returns `BigDecimal.ZERO`
*/
fun BigDecimal?.orZero(): BigDecimal = this ?: BigDecimal.ZERO
fun BigDecimal?.orZero(): BigDecimal = this ?: BigDecimal.ZERO
fun BigDecimal.isZero(): Boolean = this.compareTo(BigDecimal.ZERO) == 0