Overload equality operator to handle floating-point comparisons.