ABS(3) — Unix Programmer’s Manual
NAME
abs − integer absolute value
SYNOPSIS
abs(i)
int i;
DESCRIPTION
Abs returns the absolute value of its integer operand.
SEE ALSO
floor(3) for fabs
BUGS
You get what the hardware gives on the smallest integer.
7th Edition