Everything

remainder / remainderf / remainderl


Calculates the remainder of a division of two floating-point numbers.

[Format]

#include <math.h>

double remainder(double d1, double d2);

float remainderf(float d1, float d2);

long double remainderl(long double d1, long double d2);

[Parameters]

d1, d2 Values for which remainder of a division is to be computed (d1 / d2)

[Return values]

Remainder of division of d1 by d2

[Remarks]

The remainder calculation by the remainder function group conforms to the IEEE 60559 standard.