r/programming • u/mttd • Aug 12 '26
The fastest double-to-string algorithm you’ve never heard of
https://vitaut.net/posts/2026/yy-dtoa/
338
Upvotes
r/programming • u/mttd • Aug 12 '26
View all comments
40
u/zeekar Aug 12 '26 edited Aug 12 '26
> 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 ...