google/double-conversion
View on GitHub ↗ ★ 1,197 C++
Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles.
5 mentions on Hacker News by 3 people: 0 stories, 5 comments · first 2015-11-15 · latest 2024-09-11
20082026
-
…a bigint support of the bounded size (~3 KB) and can be done in much smaller code than dtoa. [1] https://github.com/google/double-conversion [1] https://lemire.me/blog/2020/03/10/fast-float-parsing-in-prac...
comment by lifthrasiir · 2024-09-11 · in Strtod Is Wild -
…there doesn't seem to be an easy-to-use, complete library for Ryu yet. The Grisu library ( https://github.com/google/double-conversion ) is probably still the go-to library if you don't want to implement it again...
comment by floitsch · 2019-06-14 · in Formatting floating point numbers -
I'm the author of Grisu. ( http://github.com/google/double-conversion and http://florian.loitsch.com/publications/dtoa-pldi2010.pdf ) Grisu is also proven to be always correct. As mentioned in another comment: you have to define "correct".…
comment by floitsch · 2017-04-03 · in 0.30000000000000004 -
…In that case, one can fall back to another complete algorithm. The double-conversion library ( http://github.com/google/double-conversion ) does exactly that. It uses the slower bignum algorithm in these cases.
comment by floitsch · 2017-04-03 · in 0.30000000000000004 -
…Loitsch http://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/pr... And its implementation in C https://github.com/google/double-conversion Here's a Java implementation of Grisu2 algorithm. https://github.com/jnordwick/zerog-grisu
comment by specialist · 2015-11-15 · in Printing Floating-Point Numbers (2014)