Code: Select all
if 66.3 == round(66.30001, 1):
print("Rounding is fine")
print("This should not print 66.30001 on Pico but it does:", 66.3)
Code: Select all
if 66.3 == round(66.30001, 1):
print("Rounding is fine")
print("This should not print 66.30001 on Pico but it does:", 66.3)