compare ints and floats separately