Ratio rounding

Fixes improper device ratio comparisons when the ratio isn't a rounded number.