Updated on 2026-08-14
This commit is contained in:
parent
cdc3f78320
commit
ae42c238d3
13 changed files with 276 additions and 177 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue