Skip to content

fabs, fabsf : absolute value (magnitude)

#include <math.h>
double fabs(double x);
float fabsf(float x);
```### Description
fabs and fabsf calculate the absolute value (magnitude) of the argument x, by direct manipulation of the bit representation of x.### Returns
The calculated value is returned. No errors are detected.
---
**Authoritative source**: BUSMASTER DITA help source `fabs.dita`, compiled into `BUSMASTER.CHM` with the application.