asp.net.ph

Math.Abs Method ( SByte )

System Namespace   Math Class


Returns the absolute value of an 8-bit signed integer.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

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

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

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

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

Parameters

value
A number in the range MinValue < valueMaxValue.

Return Value

An 8-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


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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