DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

abs(S)


abs, labs -- return integer absolute value

Synopsis

   #include <stdlib.h>
   

int abs(int val);

long labs(long lval);

long long llabs(long long lval);

Description

abs returns the absolute value of its int operand. labs returns the absolute value of its long operand. llabs returns the absolute value of its long long operand.

References

floor(3M)

Notices

In 2's-complement representation, the absolute value of the largest magnitude negative integral value is undefined.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005