ABS(3C) — HP-UX
NAME
abs − return integer absolute value
SYNOPSIS
int abs (i)
int i;
DESCRIPTION
Abs returns the absolute value of its integer operand.
The largest negative integer returns itself.
WARNINGS
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.
SEE ALSO
Hewlett-Packard Company — Version B.1, May 11, 2021