DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on • Originally published at codedrops.tech

What's 0.1 + 0.2 in Javascript?

console.log(0.1 + 0.2 === 0.3); // false
Enter fullscreen mode Exit fullscreen mode

Issues with the floating value stored by JS.


Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramTwitterFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript

codedrops.tech

Top comments (1)

Collapse
 
madza profile image
Madza

You can read more here