NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency.Abs

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;

Parameters

c
A Currency value.

Return Value

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.

Remarks

The absolute value of MinValue is MaxValue so that no exceptions are thrown.

See Also

Currency Structure | Currency Members | System Namespace