return the absolute value of a long integer

You're viewing an older version of this page (#3256). View the current version.

View versions (3)

NAME

<span class="Nm" id="labs">labs</span>

INTERFACE

#include <stdlib.h> long labs ( long j )

DESCRIPTION

The labs function returns the absolute value of the long integer &#92;c j.

SEE ALSO

abs (3) , reference:cabs (3) , floor (3) , reference:imaxabs (3) , reference:llabs (3) , reference:math (3)

STANDARDS

The labs function conforms to

BUGS

The absolute value of the most negative integer remains negative.