About Close Number Values

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

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

Tips and Tricks Programming Python 3