Standard C++ Library Reference ISO/IEC (VERSION3)
fmod, fmodf, fmodl
double fmod(double x, double y);
float fmod(float x, float y); [C++ only]
long double fmod(long double x, long double y); [C++ only]
float fmodf(float x, float y); [required with C99]
long double fmodl(long double x,
long double y); [required with C99]
The function returns the remainder of x/y, which is defined as follows:
If y is zero, the function either reports a domain error or simply returns zero.●
Otherwise, if 0 <= x, the value is x - i*y for some integer i such that:
0 <= i*|y| <= x < (i + 1)*|y|
●
Otherwise, x < 0 and the value is x - i*y for some integer i such that:
i*|y| <= x < (i + 1)*|y| <= 0
●
frexp, frexpf, frexpl
double frexp(double x, int *pexp);
float frexp(float x, int *pexp); [C++ only]
long double frexp(long double x, int *pexp); [C++ only]
float frexpf(float x, int *pexp); [required with C99]
long double frexpl(long double x, int *pexp); [required with C99]
The function determines a fraction frac and an exponent integer ex that represent the value of
x. It returns the value frac and stores the integer ex in *pexp, such that:
|frac| is in the interval [1/2, 1) or is zero●
x == frac * 2^ex●
If x is zero, *pexp is also zero.
HUGE_VAL
#define HUGE_VAL <double rvalue>
The macro yields the double value returned by some functions on a range error. The value can be
a representation of infinity.
ldexp, ldexpf, ldexpl
double ldexp(double x, int ex);
float ldexp(float x, int ex); [C++ only]
long double ldexp(long double x, int ex); [C++ only]