fabs


Absolute value function

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double fabs(double x);

[Return value]

Returns the absolute value (size) of x.

[Description]

This function calculates the absolute value (size) of x by directly manipulating the bit representation of x.