I would like to do an operation like:
double a, b, c;
a = (b % c);
But Gcc doesn't allow me to do it, because it says % operation can't be used with double. (Invalid operands to binary %).
How can I do the modulo operation without using % or using the % and double types.