asp.net.ph

Math.Abs Method ( Int32 )

System Namespace   Math Class


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

[ VB ]
Overloads Public Shared Function Abs ( _
   ByVal value As Integer _
) As Integer

[ C# ]
public static int Abs (
   int value
);

[ C++ ]
public: static int Abs (
   int value
);

[ JScript ]
public static function Abs (
   value : int
) : int;

Parameters

value
A number in the range MinValue < valueMaxValue.

Return Value

A 32-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