remquo()

Computes the remainder.

  #include <math.h>
  
  double remquo(double x, double y, int *quo);
  
  float remquof(float x, float y, int *quo);
  
  long double remquol(long double x, long double y, int *quo);    
Parameter

x

The dividend.

y

The divisor.

quo

Pointer to an integer in which to store the quotient.

Remarks

The argument quo points to an integer whose sign is the sign of x/y and whose magnitude is congruent mod 2n to the magnitude of the integral quotient of x/y, where n >= 3.

The value of x may be so large in magnitude relative to y that an exact representation of the quotient is not practical.

These functions return the remainder of x / y.

This facility may not be available on configurations of the EWL that run on platforms that do not have floating-point math capabilities.