$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #27

What is printed?

print(0.1 + 0.2)
  1. 0.3
  2. 0.30000000000000004
  3. 0.30000000000000
  4. 0.4
Floating point rounding gives 0.30000000000000004.
Play Problem Solving ▸