Floating point limitation
examples/numbers/float_precision.py
print(0.1 + 0.2) # 0.30000000000000004 x = 0.1 + 0.2 y = 0.3 print(x) # 0.30000000000000004 print(y) # 0.3 if x == y: print("They are equal") else: print("They are NOT equal")
print(0.1 + 0.2) # 0.30000000000000004 x = 0.1 + 0.2 y = 0.3 print(x) # 0.30000000000000004 print(y) # 0.3 if x == y: print("They are equal") else: print("They are NOT equal")