もうちょっと判定を曖昧にしようか。

#include <math.h>
#include <float.h>

printf("%.*f\n", fabs(fmod(x, y)) >= DBL_EPSILON, x / y);