How to compare floats and ints

jremington:
Post ALL of your code.

Enough was posted to see the problem