i1 %= f1;
i1 is a float
f1 is a double
i know the mod operator has to be in int.
so would
Code:
(((int)(i1) %= (f1));