.\" Modified Sat Jul 24 19:42:04 1993 by Rik Faith (faith@cs.unc.edu)
.\" Added fabsl, fabsf, aeb, 2001-06-07
.\"
-.TH FABS 3 2015-04-19 "" "Linux Programmer's Manual"
+.TH FABS 3 2017-09-15 "" "Linux Programmer's Manual"
.SH NAME
fabs, fabsf, fabsl \- absolute value of floating-point number
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double fabs(double " x );
-.br
.BI "float fabsf(float " x );
-.br
.BI "long double fabsl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fabsf (),
.BR fabsl ():
.SH RETURN VALUE
These functions return the absolute value of
.IR x .
-
+.PP
If
.I x
is a NaN, a NaN is returned.
-
+.PP
If
.I x
is \-0, +0 is returned.
-
+.PP
If
.I x
is negative infinity or positive infinity, positive infinity is returned.
.TE
.SH CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008.
-
+.PP
The variant returning
.I double
also conforms to