1ABS(3)                     Library Functions Manual                     ABS(3)
2
3
4

NAME

6       abs - integer absolute value
7

SYNOPSIS

9       abs(i)
10       int i;
11

DESCRIPTION

13       Abs returns the absolute value of its integer operand.
14

SEE ALSO

16       floor(3M) for fabs
17

BUGS

19       Applying  the  abs  function  to  the most negative integer generates a
20       result which is the most negative integer.  That is,
21
22       abs(0x80000000)
23
24       returns 0x80000000 as a result.
25
26
27
287th Edition                      May 15, 1985                           ABS(3)
Impressum