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!

Decimal.Divide

Divides two specified Decimal values.

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

Parameters

d1
The left operand (the dividend), a Decimal.
d2
The right operand (the divisor), a Decimal.

Return Value

The value that is the result of the division.

Exceptions

Exception Type Condition
DivideByZeroException If the dividend is zero.
OverflowException If the quotient is too large to represent as a Decimal.

Remarks

The Divide method divides two decimal values, the dividend by the divisor (d1/ d2) to get the quotient.

See Also

Decimal Structure | Decimal Members | System Namespace