subtract

open override fun subtract(other: BigDecimal): BigDecimal

Subtract two BigDecimal and return result in a new instance of BigDecimal. Default decimal mode will be used

Return

BigDecimal containing result of the operation

Parameters

other

BigDecimal (subtrahend)


fun subtract(other: BigDecimal, decimalMode: DecimalMode? = null): BigDecimal

Subtract two BigDecimal and return result in a new instance of BigDecimal

Return

BigDecimal containing result of the operation

Parameters

other

BigDecimal (subtrahend)