While David M. Gay's dtoa.c has been around for decades and kind of became a standard library in so many software packages, there are better implementations out there that outperform it by a order of magnitude. For instance, the one described in this paper by Daniel Lemire, is one such library; this implementation has been adopted by the likes of WebKit, Go, and other projects/language runtimes.
While David M. Gay's
dtoa.c
has been around for decades and kind of became a standard library in so many software packages, there are better implementations out there that outperform it by a order of magnitude. For instance, the one described in this paper by Daniel Lemire, is one such library; this implementation has been adopted by the likes of WebKit, Go, and other projects/language runtimes.