Returns the absolute value of a 32-bit signed integer.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static int Abs(
int value
)
Parameters
- value
- Type: SystemInt32
A number that is greater than MinValue, but less than or equal to MaxValue.
Return Value
Type:
Int32A 32-bit signed integer, x, such that 0 ≤ x ≤
MaxValue.
Exceptions Exception | Condition |
---|
OverflowException | value equals MinValue. |
See Also