Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-01 13:21:26 +05:00
parent 20dc8c9d90
commit fb34b46df6
54 changed files with 909 additions and 208 deletions

View file

@ -0,0 +1,10 @@
package com.tangem.utils.extensions
import java.math.BigDecimal
/**
* Converts `BigDecimal?` to `BigDecimal`
*
* If `BigDecimal?` is `null`, returns `BigDecimal.ZERO`
*/
fun BigDecimal?.orZero(): BigDecimal = this ?: BigDecimal.ZERO