xref: /original-bsd/lib/libm/common_source/fabs.3 (revision c3e32dec)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\"	@(#)fabs.3	8.1 (Berkeley) 06/04/93
5.\" %sccs.include.redist.man%
6.\"
7.\"     @(#)fabs.3	8.1 (Berkeley) 06/04/93
8.\"
9.Dd
10.Dt FABS 3
11.Os
12.Sh NAME
13.Nm fabs
14.Nd floating-point absolute value function
15.Sh SYNOPSIS
16.Fd #include <math.h>
17.Ft double
18.Fn fabs "double x"
19.Sh DESCRIPTION
20The
21.Fn fabs
22function computes the absolute value of a floating-point number
23.Fa x .
24.Sh RETURN VALUES
25The
26.Fn fabs
27function returns the absolute value of
28.Fa x .
29.Sh SEE ALSO
30.Xr abs 3 ,
31.Xr ceil 3 ,
32.Xr floor 3 ,
33.Xr rint 3 ,
34.Xr ieee 3 ,
35.Xr math.3
36.Sh STANDARDS
37The
38.Fn fabs
39function conforms to
40.St -ansiC .
41