Query: fabs
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FABS(3) BSD Library Functions Manual FABS(3)NAMEfabs -- floating-point absolute value functionSYNOPSIS#include <math.h> double fabs(double x); long double fabsl(long double x); float fabsf(float x);DESCRIPTIONThe fabs() functions compute the absolute value of a floating-point number x.SPECIAL VALUESfabs(+-0) returns 0. fabs(+-infinity) returns +infinity.VECTOR OPERATIONSIf you need to apply the fabs() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may give significantly better performance: #include <Accelerate/Accelerate.h> vFloat vfabsf(vFloat x); void vvfabsf( float *y, const float *x, const int *n); void vvfabs(double *y, const double *x, const int *n);SEE ALSOabs(3), ceil(3), floor(3), rint(3), math(3)STANDARDSThe fabs() functions conform to ISO/IEC 9899:2011.BSDDecember 11, 2006 BSD
Related Man Pages |
---|
cosf(3) - mojave |
fmod(3) - mojave |
fmodl(3) - mojave |
sinl(3) - mojave |
cosl(3) - osx |