C Reference function floor()

Usage of floor():

double floor(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 floor():

More »


Posted in C Reference math.h Functions | 1 Comment


C Reference function fabs()

Usage of fabs():

double fabs(double x);

Parameters:

There is no range limit on the argument.

Return value:

There is no range limit on the return value.
A negative value becomes positive, positive value is unchanged. The return value is always positive.

Source code example of fabs():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function fabs()


C Reference function fmod()

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 | Comments Off on C Reference function fmod()


C Reference function ceil()

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 | Comments Off on C Reference function ceil()


C Reference function sqrt()

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 | Comments Off on C Reference function sqrt()


C Reference function pow()

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 | Comments Off on C Reference function pow()


C Reference function modf()

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 | Comments Off on C Reference function modf()


C Reference function log()

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 | Comments Off on C Reference function log()


C Reference function log10()

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 | Comments Off on C Reference function log10()


C Reference function ldexp()

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 | 1 Comment