© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
TheSudarsanDev
A full stack developer...
The reason behind why 0.1 + 0.2 == 0.3 is false because computer uses base 2 floating point numbers. And when it converts it into human readable base 10 floating point numbers, such errors happen.
Another example error is 0.1 * 0.1 == 0.01
Dhairya Shah
Frontend Web Developer | Technical Writer
Thank you for explaining!