User Tools

Site Tools


solaris:abs.3c

abs


NAME

abs, labs, llabs - return absolute value of integer

SYNOPSIS

#include <stdlib.h>

int abs(int val);

long labs(long lval);

long long llabs(long long llval);

DESCRIPTION

The abs() function returns the absolute value of its int operand.

The labs() function returns the absolute value of its long operand.

The llabs() function returns the absolute value of its long long operand.

USAGE

In 2’s-complement representation, the absolute value of the largest magnitude negative integral value is undefined.

ATTRIBUTES

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

SEE ALSO

attributes(7), standards(7)


solaris/abs.3c.txt · Last modified: 2023/07/19 08:57 by A User Not Logged in