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

What is the output?

console.log(0.1 + 0.2);
  1. 0.3
  2. 0.30000000000000
  3. 0.4
  4. 0.30000000000000004
JS uses IEEE 754 doubles, giving 0.30000000000000004.
Play Problem Solving ▸