xref: /minix3/lib/libm/man/fabs.3 (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
12fe8fb19SBen Gras.\" Copyright (c) 1991 The Regents of the University of California.
22fe8fb19SBen Gras.\" All rights reserved.
32fe8fb19SBen Gras.\"
42fe8fb19SBen Gras.\" Redistribution and use in source and binary forms, with or without
52fe8fb19SBen Gras.\" modification, are permitted provided that the following conditions
62fe8fb19SBen Gras.\" are met:
72fe8fb19SBen Gras.\" 1. Redistributions of source code must retain the above copyright
82fe8fb19SBen Gras.\"    notice, this list of conditions and the following disclaimer.
92fe8fb19SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright
102fe8fb19SBen Gras.\"    notice, this list of conditions and the following disclaimer in the
112fe8fb19SBen Gras.\"    documentation and/or other materials provided with the distribution.
122fe8fb19SBen Gras.\" 3. Neither the name of the University nor the names of its contributors
132fe8fb19SBen Gras.\"    may be used to endorse or promote products derived from this software
142fe8fb19SBen Gras.\"    without specific prior written permission.
152fe8fb19SBen Gras.\"
162fe8fb19SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
172fe8fb19SBen Gras.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
182fe8fb19SBen Gras.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
192fe8fb19SBen Gras.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
202fe8fb19SBen Gras.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
212fe8fb19SBen Gras.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
222fe8fb19SBen Gras.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
232fe8fb19SBen Gras.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
242fe8fb19SBen Gras.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
252fe8fb19SBen Gras.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
262fe8fb19SBen Gras.\" SUCH DAMAGE.
272fe8fb19SBen Gras.\"
282fe8fb19SBen Gras.\"     from: @(#)fabs.3	5.1 (Berkeley) 5/2/91
29*84d9c625SLionel Sambuc.\"	$NetBSD: fabs.3,v 1.15 2011/09/13 07:11:43 njoly Exp $
302fe8fb19SBen Gras.\"
312fe8fb19SBen Gras.Dd May 2, 1991
322fe8fb19SBen Gras.Dt FABS 3
332fe8fb19SBen Gras.Os
342fe8fb19SBen Gras.Sh NAME
352fe8fb19SBen Gras.Nm fabs ,
362fe8fb19SBen Gras.Nm fabsf
372fe8fb19SBen Gras.Nd floating-point absolute value function
382fe8fb19SBen Gras.Sh LIBRARY
392fe8fb19SBen Gras.Lb libm
402fe8fb19SBen Gras.Sh SYNOPSIS
412fe8fb19SBen Gras.In math.h
422fe8fb19SBen Gras.Ft double
432fe8fb19SBen Gras.Fn fabs "double x"
442fe8fb19SBen Gras.Ft float
452fe8fb19SBen Gras.Fn fabsf "float x"
462fe8fb19SBen Gras.Sh DESCRIPTION
472fe8fb19SBen GrasThe
482fe8fb19SBen Gras.Fn fabs
492fe8fb19SBen Grasand
502fe8fb19SBen Gras.Fn fabsf
512fe8fb19SBen Grasfunctions compute the absolute value of a floating-point number
522fe8fb19SBen Gras.Fa x .
532fe8fb19SBen Gras.Sh RETURN VALUES
542fe8fb19SBen GrasThe
552fe8fb19SBen Gras.Fn fabs
562fe8fb19SBen Grasfunction returns the absolute value of
572fe8fb19SBen Gras.Fa x .
582fe8fb19SBen Gras.Sh SEE ALSO
592fe8fb19SBen Gras.Xr abs 3 ,
602fe8fb19SBen Gras.Xr ceil 3 ,
612fe8fb19SBen Gras.Xr floor 3 ,
622fe8fb19SBen Gras.Xr math 3 ,
632fe8fb19SBen Gras.Xr rint 3
642fe8fb19SBen Gras.Sh STANDARDS
652fe8fb19SBen GrasThe
662fe8fb19SBen Gras.Fn fabs
672fe8fb19SBen Grasfunction conforms to
682fe8fb19SBen Gras.St -ansiC .
69