S
Feb 28, 2026Shortest Round-Trip: Implementing IEEE 754 to Decimal Conversion in Go
Every programmer has seen this: 0.1 + 0.2 = 0.30000000000000004 Enter fullscreen mode ...
Feb 28, 202613 min read1 reactions0 comments
Tag archive
Every programmer has seen this: 0.1 + 0.2 = 0.30000000000000004 Enter fullscreen mode ...
https://www.youtube.com/watch?v=MFq97zUZvTs Every programmer hits it eventually. You type 0.1 + 0.2...
The most simple and obvious solution to the task may be subtly incorrect. And subtly incorrect equals to totally incorrect.
JavaScript uses IEEE 754 floating point to represent its numbers, and they have their quirks.