Returns the absolute value of the specified Decimal.
[Visual Basic] Public Shared Function Abs( _ ByVal d As Decimal _ ) As Decimal [C#] public static Decimal Abs( Decimal d ); [C++] public: static Decimal Abs( Decimal d ); [JScript] public static function Abs( d : Decimal ) : Decimal;
The absolute value of the argument.
The Abs method returns the absolute value of the specified Decimal. For example:
If d is positive, the result is d.
If d is negative, the result is -d.