LLABS(3) Library Functions Manual LLABS(3)

llabsreturns absolute value

Standard C Library (libc, -lc)

#include <stdlib.h>

long long
llabs(long long i);

The () function returns the absolute value of i.

abs(3), fabs(3), hypot(3), imaxabs(3), labs(3), math(3)

The llabs() function conforms to ISO/IEC 9899:1999 (“ISO C99”).

The llabs() function first appeared in FreeBSD 5.0.

The absolute value of the most negative integer remains negative.

November 14, 2001 macOS 14.6