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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       fabs, fabsf, fabsl - absolute value function
13

SYNOPSIS

15       #include <math.h>
16
17       double fabs(double x);
18       float fabsf(float x);
19       long double fabsl(long double x);
20
21

DESCRIPTION

23       These functions shall compute the absolute value of their argument  x,|
24       x|.
25

RETURN VALUE

27       Upon  successful  completion, these functions shall return the absolute
28       value of x.
29
30       If x is NaN, a NaN shall be returned.
31
32       If x is ±0, +0 shall be returned.
33
34       If x is ±Inf, +Inf shall be returned.
35

ERRORS

37       No errors are defined.
38
39       The following sections are informative.
40

EXAMPLES

42       None.
43

APPLICATION USAGE

45       None.
46

RATIONALE

48       None.
49

FUTURE DIRECTIONS

51       None.
52

SEE ALSO

54       isnan(), the Base Definitions volume of IEEE Std 1003.1-2001, <math.h>
55
57       Portions of this text are reprinted and reproduced in  electronic  form
58       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
59       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
60       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
61       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
62       event of any discrepancy between this version and the original IEEE and
63       The Open Group Standard, the original IEEE and The Open Group  Standard
64       is  the  referee document. The original Standard can be obtained online
65       at http://www.opengroup.org/unix/online.html .
66
67
68
69IEEE/The Open Group                  2003                             FABS(3P)
Impressum