times

operator fun times(multiplicand: BigDecimal?): BigDecimal

Returns a BigDecimal whose value is (this multiplicand), and whose _scale is (this._scale() + multiplicand._scale()).

Return

this * multiplicand

Parameters

multiplicand

value to be multiplied by this BigDecimal.

fun times(multiplicand: BigDecimal, mc: MathContext): BigDecimal

Returns a BigDecimal whose value is (this multiplicand), with rounding according to the context settings.

Return

this * multiplicand, rounded as necessary.

Since

1.5

Parameters

multiplicand

value to be multiplied by this BigDecimal.

mc

the context to use.

Throws

if the result is inexact but the rounding mode is UNNECESSARY.