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
Show parent comment
9
u/zeekar Aug 13 '26
You can write 6.02 × 1023 without reaching for TeX, but I'm not nit-picking the author's choice of notation. I'm just pointing out that "19, printed as 19e1" implies an equivalence between two values that are not equivalent. "19e1" may not be standard scientific notation, but it is a decades-old standard representation in computer programming languages with a well-understood meaning, and that meaning is not the same number as 19.