Is it safe to compare rounded float values for equality?

Any bucketing of floating-point numbers into more than one bucket will have the property that there are values which only differ in the last bit yet are in different buckets.

4 Likes