DEV Community

Discussion on: JavaScript Interview Question #32: 0.1 + 0.1 + 0.1 === 0.3

Collapse
 
gyandeeps profile image
Gyandeep Singh

It even gets more interesting with subtraction.
0.3 - 0.1 = 0.19999999999999998

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

Absolutely! And the reason is the same.