|
fabsfunction
<cmath>
double fabs ( double x ); float fabs ( float x ); long double fabs ( long double x ); Compute absolute value Returns the absolute value of x ( /x/ ).In C++, abs is also declared in this header with the same behavior. Parameters
Return ValueThe absolute value of x.PortabilityIn C, only the double version of this function exists with this name.Example
Output:
See also
|