I don't see any comparison anywhere... Where does the equality comparison fit in?
So, assuming you now know about floating point, do you still require an equality comparison?