C Tutorial/math.h/remquo
remquo
Item Value Header file math.h Declaration float remquof(float a, float b, int *quo);double remquo(double a, double b, int *quo);long double remquol(long double a, long double b, int *quo); Return returns the remainder of a/b.
<source lang="cpp">#include <math.h>
#include <stdio.h> int main(void) { double x = 10.0, y = 0.0; int i; do { printf("%f\n", remquo (x, y+1,&i)); printf("%d",i); y++; } while(y<11.0); return 0; }</source>