Fix issue with comparing floating-point numbers.