I'm getting a compilation error using fmod to split the int from the remainder.
error: passing 'int *' to parameter of incompatible type
'double'
Here's the code:
// definitions
float da, F;
int I, F2, Q1;
while (da > 0.00)
{
F = modf (da, &I);
F2 = round (F * 100);
Q1 = I / .25;
}
printf("Integer %d and rounded remainder %d", I, Q1)