Fixed location comparator to not lose differences in distance due to rounding from int cast