FABS(3) MachTen Programmer’s Manual FABS(3)

NAME
fabs - floating-point absolute value function

SYNOPSIS
#include <math.h>

double
fabs(double x)

DESCRIPTION
The fabs() function computes the absolute value of a floating-point num-
ber x.

RETURN VALUES
The fabs() function returns the absolute value of x.

SEE ALSO
abs(3), ceil(3), floor(3), rint(3), ieee(3), math.3

STANDARDS
The fabs() function conforms to ANSI C3.159-1989 (‘‘ANSI C’’).

4.4BSD June 4, 1993 1