IMAXABS(3) OpenBSD Programmer's Manual IMAXABS(3)NAMEimaxabs - integer absolute value function
SYNOPSIS
#include <inttypes.h>
intmax_t
imaxabs(intmax_t j);
DESCRIPTION
The imaxabs() function computes the absolute value of the intmax_t
variable j.
RETURN VALUES
The imaxabs() function returns the absolute value.
SEE ALSOabs(3), cabs(3), floor(3), hypot(3), labs(3), math(3)STANDARDS
The imaxabs() function conforms to ANSI/ISO/IEC 9899-1999 (``ANSI C99'').
BUGS
The absolute value of the most negative integer remains negative.
OpenBSD 4.9 June 21, 2009 OpenBSD 4.9