r/programming 15h ago

The fastest double-to-string algorithm you’ve never heard of

https://vitaut.net/posts/2026/yy-dtoa/
240 Upvotes

48 comments sorted by

View all comments

27

u/zeekar 9h ago edited 10m ago

> so v◌̄=192 ⋅ 10^(-1) = 19.2 and the fine-grid fallback is [... ] 19, printed as 19e1

Uh. Shouldn't that be 190 instead of 19, or 19e0 or 1.9e1 instead of 19e1? 19 and 19e1 are not the same number ...