1 2 3 4 5 6 7
#include <math.h> double remainder(double x, double y) { int q; return remquo(x, y, &q); }