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
, thanks, but is there a way to make it so it works with float datatypes?