$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #76

What is printed?

print(0.1 + 0.2 == 0.3, round(0.1 + 0.2, 2) == 0.3)
  1. False True
  2. True True
  3. False False
  4. True False
Binary floats make the raw sum slightly off; rounding to 2 places fixes the comparison.
Play Problem Solving ▸