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.Divide

Divides two Currency values and produces a Decimal result.

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

Parameters

c1
The left operand (the dividend).
c2
The right operand (the divisor).

Return Value

The value is the result of dividing the dividend by the divisor.

Exceptions

Exception Type Condition
DivideByZeroException If the divisor is zero.

Remarks

The Divide method performs the arithmetic operation of division (c1/ c2) and returns the quotient as a Currency value.A DivideByZeroException is thrown if the second operand, the divisor (c2), is 0.

See Also

Currency Structure | Currency Members | System Namespace