0.1 + 0.2 javascript
snippet in javascript

0.1 + 0.2 javascript

user8049

in JavaScript 0.1 + 0.2 equals 0.30000000000000004 and not 0.3,
as 0.1 is represented as an endless fraction and is eventually rounded