invalid operands of types 'float' and 'int' to binary 'operator%'

AWOL:
The error messages are pretty self-explanatory.
The operators % and & are not defined for floating point datatypes.
Try integer datatypes instead.

I think i've fixed the code tags :smiley: , thanks, but is there a way to make it so it works with float datatypes?