Fix float comparisons for Ruby <2