Function abs( x )
- Description:
-
Returns the absolute value of an integer value.
If the argument is not negative, the argument is returned.
If the argument is negative, the negation of the argument is returned.
- Parameters:
-
- x (integer)
- the argument whose absolute value is to be determined
- Return Value (integer):
- the absolute value of the argument.
- Signature:
- int abs(int)