It's well known that comparing floats for equality is a little fiddly due to rounding and precision issues. For examples on this, see the blog post Comparing Floating Point Numbers, 2012 Edition by Bruce Dawson.
How do I deal with this in Python?
Is a standard library function for this available somewhere?