---
title: "Comment by TheSudarsanDev on \"JavaScript is Crazy - Part 2\" | Hashnode"
description: "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 floatin"
url: "https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af/comment/61ef8e92e247b2151e61dc1a"
---

[Discussion](https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af)

Comment [JavaScript is Crazy - Part 2](https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af)

[TheSudarsanDev](https://hashnode.com/@TheSudarsanDev)

[Jan 25, 2022](https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af/comment/61ef8e92e247b2151e61dc1a)

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](https://hashnode.com/@codewithsnowbit)

[Jan 25, 2022](https://hashnode.com/posts/javascript-is-crazy-part-2/61ef80f8c99aed184e7284af/comment/61ef8e92e247b2151e61dc1a#reply-61ef8ee5e247b2151e61dc3c)

Thank you for explaining!
