Returns the absolute value of the given Currency.
[Visual Basic] Public Shared Function Abs( _ ByVal c As Currency _ ) As Currency [C#] public static Currency Abs( Currency c ); [C++] public: static Currency Abs( Currency c ); [JScript] public static function Abs( c : Currency ) : Currency;
The absolute value of the argument.
Return Value | Description |
---|---|
The result is c. | If c is positive. |
The result is -c. | If c is negative. |
The absolute value of MinValue is MaxValue so that no exceptions are thrown.