JavaScript has some weird and unexpected behaviors, such as the result of adding 0.1 and 0.2 not being equal to 0.3. Floating point numbers in JavaScript are represented in a way that causes these inconsistencies.

•2m read time•From dev.to
Post cover image
Table of contents
The minigamesLeonardo Montini Follow
20 Comments

Sort: