Frontend Web Developer | Technical Writer
I am 17 years old and a young passionate and self-taught frontend web developer and have an intention to become a successful developer. I usually write about JavaScript and Web Development and share some tips in the articles.
Markdown supported · ⌘↵ to post
TheSudarsanDev
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