subtract

open override fun subtract(amount: MonetaryAmount?): Geldbetrag

Returns a MonetaryAmount whose value is this - amount, and whose scale is max(this.scale(), subtrahend.scale().

Return

this - amount

Parameters

amount

value to be subtracted from this MonetaryAmount.

Throws

if the result exceeds the numeric capabilities of this implementation class, i.e. the MonetaryContext cannot be adapted as required.