Function for float comparisons.