ABS(3C) (C Programming Language Utilities) ABS(3C)
NAME
abs - return integer absolute value
SYNOPSIS
int abs (i)
int i;
DESCRIPTION
abs returns the absolute value of its integer operand.
SEE ALSO
floor(3M).
CAVEAT
In two's-complement representation, the absolute value of
the negative integer with largest magnitude is undefined.
Some implementations trap this error, but others simply
ignore it.
Page 1 May 1989