Overloaded equality operator to handle floating-point comparisons.