Everything

remquo / remquof / remquol


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

[Format]

#include <math.h>

double remquo(double d1, double d2, long *q);

float remquof(float d1, float d2, long *q);

long double remquol(long double d1, long double d2, long *q);

[Parameters]

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

q Value pointing to the location to store the quotient obtained by remainder calculation

[Return values]

Remainder of division of d1 by d2

[Remarks]

The value stored in the location indicated by q has the same sign as the result of x/y and the integral quotient of modulo-2n x/y (n is an implementation-defined integer equal to or greater than 3).