How to compare floats and ints

Also note the val = 186 always.