7.12.7.2 The fabs functions

Synopsis

1

#include <math.h>
double fabs(double x);
float fabsf(float x);
long double fabsl(long double x);

Description

2

The fabs functions compute the absolute value of a floating-point number x.

Returns

3

The fabs functions return | x |.