Mono Class Library: System.Decimal Overview | Members

System.Decimal.Multiply Method

Returns the result of multiplying two decimal values.

public static decimal Multiply (decimal d1, decimal d2)

Parameters

d1
The multiplier.
d2
The multiplicand.

Returns

The result of multiplying d1 and d2 . The scale of the result, before any rounding, is the sum of the scales of d1 and d2.

For example, 123 x 3 gives 369, and 2.2 x 1.35 gives 2.970.

Exceptions

TypeReason
OverflowExceptionThe result is greater than decimal.MaxValue or less than decimal.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0