fabs, fabsf
Visual Studio 2005
Calculates the absolute value of the floating-point argument.
double fabs( double x ); float fabs( float x ); // C++ only long double fabs( long double x ); // C++ only float fabsf( float x );
Parameters
- x
-
Floating-point value.
| Function | Required header | Compatibility |
|---|---|---|
| fabs, fabsf | <math.h> | ANSI, Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
For additional compatibility information, see Compatibility in the Introduction.