home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ABS(3) MINTLIB LIBRARY FUNCTIONS ABS(3)
-
-
- N✓NA✓AM✓ME✓E
- abs, labs - return integer or long absolute value
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <stdlib.h>
-
- int abs(int i);
-
- long labs(long i);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- abs returns the absolute value of its integer operand.
- labs returns the absolute value of its long operand.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- f✓fa✓ab✓bs✓s(✓(3✓3)✓)
-
- C✓CA✓AV✓VE✓EA✓AT✓T
- In two's-complement representation, the absolute value of
- the negative integer or long with the largest magnitude is
- undefined. This error is not trapped in this implementa-
- tion.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-