Decimals in Java
I am following Matt Popcock on X. He sounds like he knows his stuff.
Today I learned that:
In JS if you add 0.1 + 0.2 you get 0.3000000000004
console.log(.1 + .2);
Link to read:
https://0.30000000000000004.com/
Very interesting.
Top comments (1)