Divides two Decimal values and returns a Decimal result.
[C#] public static Decimal operator /( Decimal d1, Decimal d2 ); [C++] public: static Decimal operator op_Division( Decimal d1, Decimal d2 ); [JScript] returnValue = d1 / d2;
[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.
[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.
The Decimal result of dividing the numbers.
Exception Type | Condition |
---|---|
DivideByZeroException | is thrown if the divisor is zero. |
The op_Division method divides two Decimal values and returns the result as a Decimal value.