1IMAXABS(P)                 POSIX Programmer's Manual                IMAXABS(P)
2
3
4

NAME

6       imaxabs - return absolute value
7

SYNOPSIS

9       #include <inttypes.h>
10
11       intmax_t imaxabs(intmax_t j);
12
13

DESCRIPTION

15       The  imaxabs()  function shall compute the absolute value of an integer
16       j. If the result cannot be represented, the behavior is undefined.
17

RETURN VALUE

19       The imaxabs() function shall return the absolute value.
20

ERRORS

22       No errors are defined.
23
24       The following sections are informative.
25

EXAMPLES

27       None.
28

APPLICATION USAGE

30       The absolute value of the most negative number cannot be represented in
31       two's complement.
32

RATIONALE

34       None.
35

FUTURE DIRECTIONS

37       None.
38

SEE ALSO

40       imaxdiv()  , the Base Definitions volume of IEEE Std 1003.1-2001, <int‐
41       types.h>
42
44       Portions of this text are reprinted and reproduced in  electronic  form
45       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
46       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
47       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
48       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
49       event of any discrepancy between this version and the original IEEE and
50       The Open Group Standard, the original IEEE and The Open Group  Standard
51       is  the  referee document. The original Standard can be obtained online
52       at http://www.opengroup.org/unix/online.html .
53
54
55
56IEEE/The Open Group                  2003                           IMAXABS(P)
Impressum