How to compare floats and ints

I think that you can edit the title to include solved.