1FABS(3) Linux Programmer's Manual FABS(3)
2
3
4
6 fabs, fabsf, fabsl - absolute value of floating-point number
7
9 #include <math.h>
10
11 double fabs(double x);
12 float fabsf(float x);
13 long double fabsl(long double x);
14
15 Link with -lm.
16
18 The fabs() functions return the absolute value of the floating-point
19 number x.
20
22 No errors can occur.
23
25 The fabs() function conforms to SVr4, POSIX.1-2001, 4.3BSD, C89. The
26 other functions are from C99.
27
29 abs(3), ceil(3), cabs(3), floor(3), labs(3), rint(3)
30
31
32
33 2001-06-07 FABS(3)