ulfjack / ryu

Converts floating point numbers to decimal strings
Apache License 2.0
1.19k stars 99 forks source link

Add STL's general formatting for ryu_printf #185

Open Artoria2e5 opened 3 years ago

Artoria2e5 commented 3 years ago

This is a very early draft for putting %g in ryu so that printf() writers will find it easier to use it. Current TODOs include:

Credits go to @StephanTLavavej for his C++ code.

ulfjack commented 3 years ago

Cool!

maelh commented 3 years ago

I was trying to get more info on your commit, but the link https://reviews.llvm.org/file/data/kb2knv5sxt2jhdfj25ah/PHID-FILE-6wgegsparpeqk3ror2gv/libcxx_include_charconv is broken.

Artoria2e5 commented 3 years ago

Uh, fine. Try https://reviews.llvm.org/D70631. Thanks for the reminder by the way -- my life is fucked as usual, but maybe I can actually get it rolling sometime.