NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency.Multiply

Multiplies two Currency values and returns a Decimal result.

[Visual Basic]
Public Shared Function Multiply( _
   ByVal c1 As Currency, _
   ByVal c2 As Currency _
) As Decimal
[C#]
public static Decimal Multiply(
   Currency c1,
   Currency c2
);
[C++]
public: static Decimal Multiply(
   Currency c1,
   Currency c2
);
[JScript]
public static function Multiply(
   c1 : Currency,
   c2 : Currency
) : Decimal;

Parameters

c1
The left operand.
c2
The right operand.

Return Value

The value is the quotient of two Currency values.

Exceptions

Exception Type Condition
OverflowException If the quotient is too large to represent as a Currency.

Remarks

The Multiply method performs the arithmetic funtion of multpling two Currency values and returning the quotient formated as a Decimal value. A overflow exception is thrown if the quotient (c1 * c2) are too large to represent as a Currency (see MaxValue).

See Also

Currency Structure | Currency Members | System Namespace