Returns the negated value of the specified Currency.
[Visual Basic] Public Shared Function Negate( _ ByVal c As Currency _ ) As Currency [C#] public static Currency Negate( Currency c ); [C++] public: static Currency Negate( Currency c ); [JScript] public static function Negate( c : Currency ) : Currency;
Value Type | Condition |
---|---|
-c | If c is other than zero. |
0 | If c is zero. |
Exception Type | Condition |
---|---|
OverflowException | If value is equal to MinValue. |
The Negate method returns the negated value of the argument as a long (Int64). For example: