Returns the absolute value of an integer.
[Visual Basic] Overloads Public Shared Function Abs( _ ByVal value As Short _ ) As Short [C#] public static short Abs( short value ); [C++] public: static short Abs( short value ); [JScript] public static function Abs( value : Int16 ) : Int16;
Returns x, the absolute value of value, such that 0 x MaxValue.
Exception Type | Condition |
---|---|
OverflowException | if value equals MinValue. |
Math Class | Math Members | System Namespace | Math.Abs Overload List