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

NAME

6       fabs, fabsf, fabsl - absolute value function
7

SYNOPSIS

9       #include <math.h>
10
11       double fabs(double x);
12       float fabsf(float x);
13       long double fabsl(long double x);
14
15

DESCRIPTION

17       These  functions shall compute the absolute value of their argument x,|
18       x|.
19

RETURN VALUE

21       Upon successful completion, these functions shall return  the  absolute
22       value of x.
23
24       If x is NaN, a NaN shall be returned.
25
26       If x is ±0, +0 shall be returned.
27
28       If x is ±Inf, +Inf shall be returned.
29

ERRORS

31       No errors are defined.
32
33       The following sections are informative.
34

EXAMPLES

36       None.
37

APPLICATION USAGE

39       None.
40

RATIONALE

42       None.
43

FUTURE DIRECTIONS

45       None.
46

SEE ALSO

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