ABS(3) — UNIX Programmer’s Manual
NAME
abs − integer absolute value
SYNOPSIS
abs(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 largest negative integer.
7th Edition