Everything

fabs / fabsf / fabsl


Calculates the absolute value of a floating-point number.

[Format]

#include <math.h>

double fabs (double d);

float fabsf (float d);

long double fabsl (long double d);

[Parameters]

d Floating-point number for which absolute value is to be computed

[Return values]

Absolute value of d