math.nextafter
The math.nextafter function returns the real value closest to the number x in the direction of the number y. That is, this function returns the result of adding to the argument x the smallest possible increment in Python towards the number y.
If x is equal to y, the function returns x.