Q. What does console.log(0.1 + 0.2) approximate?
Solution:
Due to floating-point arithmetic, 0.1 + 0.2 approximates to 0.30000000000000004.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Due to floating-point arithmetic, 0.1 + 0.2 approximates to 0.30000000000000004.
Strengthen Your Practice with our comprehensive question bank.