Standard C++ Library Reference ISO/IEC (VERSION3)

Next
<math.h>
HUGE_VAL
abs · acos · asin · atan · atan2 · ceil · cos · cosh · exp · fabs
· floor · fmod · frexp · ldexp · log · log10 · modf · pow · sin ·
sinh · sqrt · tan · tanh
acosf · asinf · atanf · atan2f · ceilf · cosf · coshf · expf ·
fabsf · floorf · fmodf · frexpf · ldexpf · logf · log10f · modff
· pow · sinf · sinhf · sqrtf · tanf · tanhf
acosl · asinl · atanl · atan2l · ceill · cosl · coshl · expl ·
fabsl · floorl · fmodl · frexpl · ldexpl · logl · log10l · modfl
· pow · sinl · sinhl · sqrtl · tanl · tanhl
Include the standard header <math.h> to declare a number of functions that perform common
mathematical operations on real floating-point values (of type float, double, or long double).
A domain error occurs when the function is not defined for its input argument value or values.
A function can report a domain error by storing the value of EDOM in errno and returning a
particular value defined for each implementation.
A range error occurs when the return value of the function is defined but cannot be represented.
A function can report a range error by storing the value of ERANGE in errno and returning one
of several values:
HUGE_VAL -- if the value of a function returning double is positive and too large in
magnitude to represent
-HUGE_VAL -- if the value of a function returning double is negative and too large in
magnitude to represent
zero -- if the value of the function is too small to represent with a finite value
/* MACROS */
#define HUGE_VAL <double rvalue>
/* FUNCTIONS */
double abs(double x); [C++ only]
float abs(float x); [C++ only]
long double abs(long double x); [C++ only]