A program compares floating point results with ==. x = 0.1 + 0.2 print(x == 0.3, round(x, 2) == 0.3, 3 * 0.1 == 0.3) What does the program print?
==
True True False
True True True
False True True
False True False
Log in to join the discussion.
Loading…