4 ms·
Looks like a great library. Not sure I actually knew about it. I will probably update the double-conversion library README to add a link. Internally it uses th
by floitsch 7y ago
Looks like a great library. Not sure I actually knew about it. I will probably update the double-conversion library README to add a link.
Internally it uses the same algorithm, Grisu, (with some additional optimizations) so there shouldn't be any difference in output.
If it's easier to use for you, just go with it!
I'm guessing the double-conversion library is a bit more flexible, but I could be wrong.
- shereadsthenews 7y agolibdouble-conversion is indeed far more flexible. I think that's what leads to all the extra typing! I mean, just including it is almost more typing than I'm willing to undertake ;-) #include "third_party/double-conversion/double-conversion/double-conversion.h"
- dunham 7y agoIn emacs, Meta-/ might help. :) > Expands to the most recent, preceding word for which this is a prefix.
- TazeTSchnitzel 7y agolibfmt's implementation of Grisu is what the original post (Formatting Floating Point Numbers) concerns, no?