FABS(3) BSD Library Functions Manual FABS(3)NAME
fabs — floating-point absolute value function
SYNOPSIS
#include <math.h>
double
fabs(double x);
float
fabsf(float x);
DESCRIPTION
The fabs() and fabsf() functions compute the absolute value of a float‐
ing-point number x.
SPECIAL VALUES
fabs(�0) returns 0.
fabs(�infinity) returns +infinity.
SEE ALSOabs(3), ceil(3), floor(3), rint(3), ieee(3), math(3)STANDARDS
The fabs() and fabsf() functions conform to ISO/IEC 9899:1999(E).
BSD November 20, 2002 BSD