Calculates the absolute value.
int abs (int n);
Required Header |
<stdlib.h> |
Return Value
This function returns the absolute value of an integer.
Parameters
n
The value to be converted
Remarks
The abs function returns the absolute value of n.