About Close Number Values

In Python >=3.5 you can use the builtin math.isclose() to find approximate equalities:

1
2
import math
math.isclose(1, 0.999999999) == True

Tips and Tricks Programming Python 3