It’s well known that comparing floats for equality is a little fiddly due to rounding and precision issues.
For example:
https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
What is the recommended way to deal with this in Python?
Surely there is a standard library function for this somewhere?