NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | STANDARDS | RESTRICTIONS
#include <stdlib.h>int abs(int j);
The abs function computes the absolute value of the integer j.
The abs function returns the absolute value.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The abs function conforms to ANSI-C.
The absolute value of the highest negative integer remains negative.
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | STANDARDS | RESTRICTIONS