asp.net.ph

Math.Abs Method ( Int16 )

System Namespace   Math Class


Returns the absolute value of a 16-bit signed integer.

[ VB ]
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;

Parameters

value
A number in the range MinValue < valueMaxValue.

Return Value

A 16-bit signed integer, x, such that 0 ≤ x ≤ MaxValue.

Exceptions


Exception Type Condition
OverflowException value equals MinValue.

See Also

Math Members   Math.Abs Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph