Languages
Why 0.1 + 0.2 isn't 0.3: floating point for working developers
Floating point isn't broken — it's binary. Understanding what it can and can't represent tells you when to use it and when to reach for decimals or integers.
Tag
Every story tagged #floating-point.
Floating point isn't broken — it's binary. Understanding what it can and can't represent tells you when to use it and when to reach for decimals or integers.