IMAXABS(3C) Standard C Library Functions IMAXABS(3C)

imaxabs - return absolute value

#include <inttypes.h>
intmax_t imaxabs(intmax_t j);

The imaxabs() function computes the absolute value of an integer j. If the result cannot be represented, the behavior is undefined.

The imaxabs() function returns the absolute value.

No errors are defined.

The absolute value of the most negative number cannot be represented in two's complement.

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Standard
MT-Level MT-Safe

imaxdiv(3C), attributes(7), standards(7)

November 1, 2003 OmniOS