xref: /freebsd/lib/msun/man/fabs.3 (revision dc36d6f9bb1753f3808552f3afd30eda9a7b206a)
13a8617a8SJordan K. Hubbard.\" Copyright (c) 1991 The Regents of the University of California.
23a8617a8SJordan K. Hubbard.\" All rights reserved.
33a8617a8SJordan K. Hubbard.\" Redistribution and use in source and binary forms, with or without
43a8617a8SJordan K. Hubbard.\" modification, are permitted provided that the following conditions
53a8617a8SJordan K. Hubbard.\" are met:
63a8617a8SJordan K. Hubbard.\" 1. Redistributions of source code must retain the above copyright
73a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer.
83a8617a8SJordan K. Hubbard.\" 2. Redistributions in binary form must reproduce the above copyright
93a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer in the
103a8617a8SJordan K. Hubbard.\"    documentation and/or other materials provided with the distribution.
11*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
123a8617a8SJordan K. Hubbard.\"    may be used to endorse or promote products derived from this software
133a8617a8SJordan K. Hubbard.\"    without specific prior written permission.
143a8617a8SJordan K. Hubbard.\"
153a8617a8SJordan K. Hubbard.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
163a8617a8SJordan K. Hubbard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
173a8617a8SJordan K. Hubbard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
183a8617a8SJordan K. Hubbard.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
193a8617a8SJordan K. Hubbard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
203a8617a8SJordan K. Hubbard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
213a8617a8SJordan K. Hubbard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
223a8617a8SJordan K. Hubbard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
233a8617a8SJordan K. Hubbard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
243a8617a8SJordan K. Hubbard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
253a8617a8SJordan K. Hubbard.\" SUCH DAMAGE.
263a8617a8SJordan K. Hubbard.\"
27801517fdSDag-Erling Smørgrav.Dd October 25, 2003
283a8617a8SJordan K. Hubbard.Dt FABS 3
293a8617a8SJordan K. Hubbard.Os
303a8617a8SJordan K. Hubbard.Sh NAME
317a15a32aSJordan K. Hubbard.Nm fabs ,
32801517fdSDag-Erling Smørgrav.Nm fabsf ,
33801517fdSDag-Erling Smørgrav.Nm fabsl
347a15a32aSJordan K. Hubbard.Nd floating-point absolute value functions
3564890443SBruce Evans.Sh LIBRARY
3664890443SBruce Evans.Lb libm
373a8617a8SJordan K. Hubbard.Sh SYNOPSIS
3832eef9aeSRuslan Ermilov.In math.h
393a8617a8SJordan K. Hubbard.Ft double
403a8617a8SJordan K. Hubbard.Fn fabs "double x"
417a15a32aSJordan K. Hubbard.Ft float
427a15a32aSJordan K. Hubbard.Fn fabsf "float x"
43801517fdSDag-Erling Smørgrav.Ft long double
44801517fdSDag-Erling Smørgrav.Fn fabsl "long double x"
453a8617a8SJordan K. Hubbard.Sh DESCRIPTION
463a8617a8SJordan K. HubbardThe
47801517fdSDag-Erling Smørgrav.Fn fabs ,
487a15a32aSJordan K. Hubbard.Fn fabsf
49862b46f6SRuslan Ermilovand
50801517fdSDag-Erling Smørgrav.Fn fabsl
517a15a32aSJordan K. Hubbardfunctions compute the absolute value of a floating-point number
523a8617a8SJordan K. Hubbard.Fa x .
533a8617a8SJordan K. Hubbard.Sh RETURN VALUES
543a8617a8SJordan K. HubbardThe
55801517fdSDag-Erling Smørgrav.Fn fabs ,
567a15a32aSJordan K. Hubbard.Fn fabsf
57862b46f6SRuslan Ermilovand
58801517fdSDag-Erling Smørgrav.Fn fabsl
597a15a32aSJordan K. Hubbardfunctions return the absolute value of
603a8617a8SJordan K. Hubbard.Fa x .
613a8617a8SJordan K. Hubbard.Sh SEE ALSO
623a8617a8SJordan K. Hubbard.Xr abs 3 ,
633a8617a8SJordan K. Hubbard.Xr ceil 3 ,
643a8617a8SJordan K. Hubbard.Xr floor 3 ,
653a8617a8SJordan K. Hubbard.Xr ieee 3 ,
6675141cc9SWolfram Schneider.Xr math 3 ,
6775141cc9SWolfram Schneider.Xr rint 3
683a8617a8SJordan K. Hubbard.Sh STANDARDS
693a8617a8SJordan K. HubbardThe
703a8617a8SJordan K. Hubbard.Fn fabs
713a8617a8SJordan K. Hubbardfunction conforms to
72588a200cSRuslan Ermilov.St -isoC .
73801517fdSDag-Erling SmørgravThe
74801517fdSDag-Erling Smørgrav.Fn fabsf
75862b46f6SRuslan Ermilovand
76801517fdSDag-Erling Smørgrav.Fn fabsl
77801517fdSDag-Erling Smørgravfunctions conform to
78801517fdSDag-Erling Smørgrav.St -isoC-99 .
79