added some more rounding for int to float comparisons