def checkNumber(x, y, epsilon):
if -epsilon <= x - y <= epsilon:
return True
if -epsilon <= x <= epsilon or -epsilon <= y <= epsilon:
return False
return (-epsilon <= (x - y) / x <= epsilon
or -epsilon <= (x - y) / y <= epsilon)
yours = float('0.4553223e-08')
actual = float('0.0')
print checkNumber(yours, actual, 1e-6)
ZGVmIGNoZWNrTnVtYmVyKHgsIHksIGVwc2lsb24pOgogIGlmIC1lcHNpbG9uIDw9IHggLSB5IDw9IGVwc2lsb246CiAgICByZXR1cm4gVHJ1ZQoKICBpZiAtZXBzaWxvbiA8PSB4IDw9IGVwc2lsb24gb3IgLWVwc2lsb24gPD0geSA8PSBlcHNpbG9uOgogICAgcmV0dXJuIEZhbHNlCgogIHJldHVybiAoLWVwc2lsb24gPD0gKHggLSB5KSAvIHggPD0gZXBzaWxvbgogICAgICAgb3IgLWVwc2lsb24gPD0gKHggLSB5KSAvIHkgPD0gZXBzaWxvbikKCnlvdXJzID0gZmxvYXQoJzAuNDU1MzIyM2UtMDgnKQphY3R1YWwgPSBmbG9hdCgnMC4wJykKCnByaW50IGNoZWNrTnVtYmVyKHlvdXJzLCBhY3R1YWwsIDFlLTYp