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;
The value that is the result of the division.
Exception Type | Condition |
---|---|
DivideByZeroException | If the dividend is zero. |
OverflowException | If the quotient is too large to represent as a Decimal. |
The Divide method divides two decimal values, the dividend by the divisor (d1/ d2) to get the quotient.