Slide 7
Slide 7 text
Fix broken float comparisons
>>> assert 1.3332 == 1.3333
Traceback (most recent call last):
File "", line 1, in
AssertionError
>>> float.__eq__ = lambda self, other: abs(abs(self) - abs(other)) < 0.1
>>> 1.3332 == 1.3333
True
>>> 1.7 == 1.1
False