Subtracts two specified Currency values.
[Visual Basic] Public Shared Function Subtract( _ ByVal c1 As Currency, _ ByVal c2 As Currency _ ) As Currency [C#] public static Currency Subtract( Currency c1, Currency c2 ); [C++] public: static Currency Subtract( Currency c1, Currency c2 ); [JScript] public static function Subtract( c1 : Currency, c2 : Currency ) : Currency;
The results of subtacting the two Currency values.
Exception Type | Condition |
---|---|
OverflowException | If the result is to large to represent as a Currency. |
The Subtract method performs the arithmetic function of subtracting the second Currecny value from the first Currency value (c1 - c2) and returning the results. An overflow exception will be theown if the result's of subtracting the two Currency values (c1 - c2) is greater than MaxValue and cannot be represented as a Currency.