13a8617a8SJordan K. Hubbard.\" Copyright (c) 1991 The Regents of the University of California. 23a8617a8SJordan K. Hubbard.\" All rights reserved. 33a8617a8SJordan K. Hubbard.\" 43a8617a8SJordan K. Hubbard.\" @(#)fabs.3 5.1 (Berkeley) 5/2/91 53a8617a8SJordan K. Hubbard.\" Redistribution and use in source and binary forms, with or without 63a8617a8SJordan K. Hubbard.\" modification, are permitted provided that the following conditions 73a8617a8SJordan K. Hubbard.\" are met: 83a8617a8SJordan K. Hubbard.\" 1. Redistributions of source code must retain the above copyright 93a8617a8SJordan K. Hubbard.\" notice, this list of conditions and the following disclaimer. 103a8617a8SJordan K. Hubbard.\" 2. Redistributions in binary form must reproduce the above copyright 113a8617a8SJordan K. Hubbard.\" notice, this list of conditions and the following disclaimer in the 123a8617a8SJordan K. Hubbard.\" documentation and/or other materials provided with the distribution. 133a8617a8SJordan K. Hubbard.\" 3. All advertising materials mentioning features or use of this software 143a8617a8SJordan K. Hubbard.\" must display the following acknowledgement: 153a8617a8SJordan K. Hubbard.\" This product includes software developed by the University of 163a8617a8SJordan K. Hubbard.\" California, Berkeley and its contributors. 173a8617a8SJordan K. Hubbard.\" 4. Neither the name of the University nor the names of its contributors 183a8617a8SJordan K. Hubbard.\" may be used to endorse or promote products derived from this software 193a8617a8SJordan K. Hubbard.\" without specific prior written permission. 203a8617a8SJordan K. Hubbard.\" 213a8617a8SJordan K. Hubbard.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 223a8617a8SJordan K. Hubbard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 233a8617a8SJordan K. Hubbard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 243a8617a8SJordan K. Hubbard.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 253a8617a8SJordan K. Hubbard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 263a8617a8SJordan K. Hubbard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 273a8617a8SJordan K. Hubbard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 283a8617a8SJordan K. Hubbard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 293a8617a8SJordan K. Hubbard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 303a8617a8SJordan K. Hubbard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 313a8617a8SJordan K. Hubbard.\" SUCH DAMAGE. 323a8617a8SJordan K. Hubbard.\" 333a8617a8SJordan K. Hubbard.\" from: @(#)fabs.3 5.1 (Berkeley) 5/2/91 347f3dea24SPeter Wemm.\" $FreeBSD$ 353a8617a8SJordan K. Hubbard.\" 36801517fdSDag-Erling Smørgrav.Dd October 25, 2003 373a8617a8SJordan K. Hubbard.Dt FABS 3 383a8617a8SJordan K. Hubbard.Os 393a8617a8SJordan K. Hubbard.Sh NAME 407a15a32aSJordan K. Hubbard.Nm fabs , 41801517fdSDag-Erling Smørgrav.Nm fabsf , 42801517fdSDag-Erling Smørgrav.Nm fabsl 437a15a32aSJordan K. Hubbard.Nd floating-point absolute value functions 4464890443SBruce Evans.Sh LIBRARY 4564890443SBruce Evans.Lb libm 463a8617a8SJordan K. Hubbard.Sh SYNOPSIS 4732eef9aeSRuslan Ermilov.In math.h 483a8617a8SJordan K. Hubbard.Ft double 493a8617a8SJordan K. Hubbard.Fn fabs "double x" 507a15a32aSJordan K. Hubbard.Ft float 517a15a32aSJordan K. Hubbard.Fn fabsf "float x" 52801517fdSDag-Erling Smørgrav.Ft long double 53801517fdSDag-Erling Smørgrav.Fn fabsl "long double x" 543a8617a8SJordan K. Hubbard.Sh DESCRIPTION 553a8617a8SJordan K. HubbardThe 56801517fdSDag-Erling Smørgrav.Fn fabs , 57801517fdSDag-Erling Smørgravthe 587a15a32aSJordan K. Hubbard.Fn fabsf 59801517fdSDag-Erling Smørgravand the 60801517fdSDag-Erling Smørgrav.Fn fabsl 617a15a32aSJordan K. Hubbardfunctions compute the absolute value of a floating-point number 623a8617a8SJordan K. Hubbard.Fa x . 633a8617a8SJordan K. Hubbard.Sh RETURN VALUES 643a8617a8SJordan K. HubbardThe 65801517fdSDag-Erling Smørgrav.Fn fabs , 66801517fdSDag-Erling Smørgravthe 677a15a32aSJordan K. Hubbard.Fn fabsf 68801517fdSDag-Erling Smørgravand the 69801517fdSDag-Erling Smørgrav.Fn fabsl 707a15a32aSJordan K. Hubbardfunctions return the absolute value of 713a8617a8SJordan K. Hubbard.Fa x . 723a8617a8SJordan K. Hubbard.Sh SEE ALSO 733a8617a8SJordan K. Hubbard.Xr abs 3 , 743a8617a8SJordan K. Hubbard.Xr ceil 3 , 753a8617a8SJordan K. Hubbard.Xr floor 3 , 763a8617a8SJordan K. Hubbard.Xr ieee 3 , 7775141cc9SWolfram Schneider.Xr math 3 , 7875141cc9SWolfram Schneider.Xr rint 3 793a8617a8SJordan K. Hubbard.Sh STANDARDS 803a8617a8SJordan K. HubbardThe 813a8617a8SJordan K. Hubbard.Fn fabs 823a8617a8SJordan K. Hubbardfunction conforms to 83588a200cSRuslan Ermilov.St -isoC . 84801517fdSDag-Erling SmørgravThe 85801517fdSDag-Erling Smørgrav.Fn fabsf 86801517fdSDag-Erling Smørgravand the 87801517fdSDag-Erling Smørgrav.Fn fabsl 88801517fdSDag-Erling Smørgravfunctions conform to 89801517fdSDag-Erling Smørgrav.St -isoC-99 . 90