Click or drag to resize
MathAbs Method (SByte)
Returns the absolute value of an 8-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static sbyte Abs(
	sbyte value
)

Parameters

value
Type: SystemSByte
A number that is greater than MinValue, but less than or equal to MaxValue.

Return Value

Type: SByte
An 8-bit signed integer, x, such that 0 ≤ x ≤MaxValue.
Exceptions
ExceptionCondition
OverflowExceptionvalue equals MinValue.
See Also