abs(3C)abs(3C)NAMEabs(), labs(), llabs(), imaxabs() - return integer absolute value
SYNOPSISDESCRIPTION
computes the absolute value of its integer operand.
computes the absolute value of its long integer operand.
computes the absolute value of its long long integer operand.
computes the absolute value of its intmax_t integer operand.
If the result value can not be represented, the behavior of these func‐
tions is undefined.
RETURN VALUE
returns the absolute value of its integer operand.
returns the absolute value of the long integer operand.
returns the absolute value of the long long integer operand.
returns the absolute value of the intmax_t integer operand.
The largest negative integer returns itself.
WARNINGS
In two's-complement representation, the absolute value of the negative
integer with the largest magnitude can not be represented.
SEE ALSOimaxdiv(3C), floor(3M), thread_safety(5).
STANDARDS CONFORMANCEabs(3C)