1ABS(3) Library Functions Manual ABS(3)
23
4
NAME
6abs - integer absolute value
7
SYNOPSIS
9abs(i)
10int i;
11
DESCRIPTION
13Abs returns the absolute value of its integer operand.
14
SEE ALSO
16floor(3M) for fabs
17
BUGS
19Applying the abs function to the most negative integer generates a
20result which is the most negative integer. That is,
2122
abs(0x80000000)
2324
returns 0x80000000 as a result.
2526
27
28
7th Edition May 15, 1985 ABS(3)