BigDecimal.mul

Returns the product of two BigDecimal values.

You can also use the * operator on BigDecimal values.

Syntax

BigDecimal.mul(a, b, rounding?)

Parameters

Return value

A new BigDecimal.

Examples

10.3m * 4.7m
48.41
BigDecimal.mul(10.3m, 4.7m)
48.41
BigDecimal.mul(10.3m, 4.7m, { roundingMode: "half-up", maximumFractionDigits: 1 })
48.4