Math Library Functions


fabs, fabsf


Syntax

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

Arguments

x      original value

Return Value

The absolute value of x 

Description

Returns the absolute value of x.