multiply

open override fun multiply(multiplicand: Long): MonetaryAmount

Returns a MonetaryAmount whose value is (this multiplicand), and whose scale is this.scale() + multiplicand.scale().

Return

this * multiplicand

Parameters

multiplicand

value to be multiplied by this MonetaryAmount.

Throws

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


open override fun multiply(multiplicand: Double): MonetaryAmount

Liefert einen GeldBetrag, desseen Wert (this multiplicand) und desse Genauigkeit (scale) this.scale() + multiplicand.scale() entspricht.

Return

this * multiplicand

Parameters

multiplicand

Multiplikant (wird evtl. gerundet, wenn die Genauigkeit zu hoch ist

Throws

bei "unendlich" oder "NaN" als Mulitiplikant


open override fun multiply(multiplicand: Number?): MonetaryAmount

Returns a MonetaryAmount whose value is (this multiplicand), and whose scale is this.scale() + multiplicand.scale().

Return

this * multiplicand

Parameters

multiplicand

value to be multiplied by this MonetaryAmount. If the multiplicand's scale exceeds the capabilities of the implementation, it may be rounded implicitly.

Throws

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