ryu
ryu copied to clipboard
Converts floating point numbers to decimal strings
I am trying to take a grasp on how Ryu algorithm reading your publication in 2018 (https://doi.org/10.1145/3192366.3192369) and reading also code you published in GitHub. There a couple of things...
I ran the following code: ``` C++ char buffer[128]; const double num = 0.30000000; d2fixed_buffered(num, 4, buffer); std::cout
Amazing work. Lots more people would love to use it, it just needs a tiny polish. If I may say my piece.. The readme.md states "...The stored value is exactly...
hello @ all, Can anyone code such a thing, an 'ld2s'? I have managed with some newbie difficulties to use d2s in another program. Since I also need a solution...
not a 'pro' ... sorry, there are probably different goals, styles and understandings about 'shortest'. E.g. performance and the preference of scientific notation to save the comparison against non-scientific, preference...
It looks like unnecessary, and makes the source rejected by compilers that do not support C99, for example, Visual Studio 2012.
Public identifiers (extern functions and public enumerators) should have a prefix to avoid name collisions with user code and other libraries. Extern functions should have a prefix such as `ryu_`....
This pull request allows users to customize the limit between decimal and scientific notation. The current version of Ryū is compliant with the Java spec and switches to scientific notation...
- The link to https://github.com/expnkx/fast_io in the top level readme is dead. - Documentation in ryu_parse.h says that `RYU_OPTIMIZE_SIZE` is not supported, but in `s2d.c` it actually uses the large...
If I am not mistaken, the https://github.com/JuliaLang/julia/tree/master/base/Ryu/ryu.jl and other files in the Ryu folder implements this algorithm. Maybe a pointer to the Julia implementation could be added to your README...