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;
The value is the result of dividing the dividend by the divisor.
Exception Type | Condition |
---|---|
DivideByZeroException | If the divisor is zero. |
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.