Usage of fmod():
double fmod(double x, double y);
Return value:
There is no range limit on the return value. If y is zero,
then either a range error will occur or the function will return zero (this can differ per implementation.)
Source code example of fmod():
More »
Posted in C Reference math.h Functions |
Usage of ceil():
double ceil(double x);
Parameters:
There is no range limit on the argument.
Return value:
There is no range limit on the return value. More »
Posted in C Reference math.h Functions |
Usage of sqrt():
double sqrt(double x);
Parameters:
The argument cannot be negative.
Return value:
The returned value is always positive.
Source code example of sqrt():
More »
Posted in C Reference math.h Functions |
Usage of pow():
double pow(double x, double y);
Parameters:
x cannot be negative if y is a fractional value. x cannot be zero if y is less than or equal to zero.
Source code example of pow():
More »
Posted in C Reference math.h Functions |
Usage of modf():
double modf(double x, double *integer);
Parameters:
There is no range limit on the argument.
Return value:
The returned value is the fraction component (that is the part after the decimal),
and sets integer to the integer component. There is no range limit on the return value.
Source code example of modf():
More »
Posted in C Reference math.h Functions |
Usage of log():
double log(double x);
Parameters:
There is no range limit on the argument.
Return value:
There is no range limit on the return value.
Source code example of log():
More »
Posted in C Reference math.h Functions |
Usage of log10():
double log10(double x);
Parameters:
There is no range limit on the argument.
Return value:
There is no range limit on the return value.
Source code example of log10():
More »
Posted in C Reference math.h Functions |
Usage of ldexp():
double ldexp(double x, int exponent);
Parameters:
There is no range limit on the argument.
Return value:
There is no range limit on the return value.
Source code example of ldexp():
More »
Posted in C Reference math.h Functions |
Usage of frexp():
double frexp(double x, int *exponent);
Parameters:
The floating-point number x is broken up into a mantissa and exponent.The returned value is the mantissa and the integer pointed to by exponent is the exponent. The resultant value is x=mantissa * 2^exponent.
Return value:
The mantissa is in the range of .5 (inclusive) to 1 (exclusive)
Source code example of frexp():
More »
Posted in C Reference math.h Functions |
Usage of exp():
double exp(double x);
Parameters:
There is no range limit on the argument.
Return value:
There is no range limit on the return value.
Source code example of exp():
More »
Posted in C Reference math.h Functions |