Rounding errors in JavaScript
May 3, 2023 · 1 min read · JavaScript uses the IEEE-754 floating-point representation, which is a binary representation, that is capable of exactly representing fractions like 1/2 and 1/8. This is great and all, but the fractions we most commonly use are decimal ones, such as:...
Join discussion