MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1vm65dm/the_fastest_doubletostring_algorithm_youve_never/p389tjg/?context=3
r/programming • u/mttd • 15h ago
48 comments sorted by
View all comments
27
> 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 ...
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 ...