United States-English |
|
|
HP-UX Reference > Aabs(3C)HP-UX 11i Version 3: February 2007 |
|
NAMEabs(), labs(), llabs(), imaxabs() — return integer absolute value SYNOPSIS#include <stdlib.h> int abs(int i); long int labs(long int i); long long llabs(long long i); #include <inttypes.h> intmax_t imaxabs(intmax_t i); DESCRIPTIONabs() computes the absolute value of its integer operand. labs() computes the absolute value of its long integer operand. llabs() computes the absolute value of its long long integer operand. imaxabs() computes the absolute value of its intmax_t integer operand. If the result value can not be represented, the behavior of these functions is undefined. RETURN VALUEabs() returns the absolute value of its integer operand. labs() returns the absolute value of the long integer operand. llabs() returns the absolute value of the long long integer operand. imaxabs() returns the absolute value of the intmax_t integer operand. The largest negative integer returns itself. |
Printable version | ||
|