Updated on 2026-08-14
This commit is contained in:
parent
20dc8c9d90
commit
fb34b46df6
54 changed files with 909 additions and 208 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue