3 ms·
For anyone looking at a practical implementation, Swift recently migrated to a Grisu2-based algorithm: https://github.com/apple/swift/commit/97a934c412a26f0222f
by saagarjha 8y ago
For anyone looking at a practical implementation, Swift recently migrated to a Grisu2-based algorithm: https://github.com/apple/swift/commit/97a934c412a26f0222f57d5e4cd7467a516eb6af https://github.com/apple/swift/commit/97a934c412a26f0222f57d...
- eboyjr 8y agoFor reference and discussion, skimming the docs, the algorithm is described here [0] and contains some improvements suggested by the "Errol paper"[1] [0]: http://www.cs.tufts.edu/comp/150FP/archive/florian-loitsch/printf.pdf http://www.cs.tufts.edu/comp/150FP/archive/florian-loitsch/p... [1]: https://news.ycombinator.com/item?id=10915182 https://news.ycombinator.com/item?id=10915182