fabs
From cppreference.com
| Defined in header <math.h>
|
||
| float fabsf( float arg ); |
(since C99) | |
| double fabs( double arg ); |
||
| long double fabsl( long double arg ); |
(since C99) | |
Computes the absolute value of a floating point value arg.
[edit] Parameters
| arg | - | floating point value |
[edit] Return value
The absolute value of arg (|arg|)
[edit] See also
| (C99) |
computes absolute value of an integral value (|x|) (function) |
| (C99) |
checks if the given number is negative (function) |
| C++ documentation for fabs
| |