ulfjack / ryu

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

Wondering if anyone has a generic_decimal_to_binary implementation? #213

Open keith-packard opened 1 year ago

keith-packard commented 1 year ago

I'm looking to support decimal to 80-bit and 128-bit binary so I can finish long double support in picolibc scanf. Before I attempt this myself, I'm wondering if I overlooked an existing implementation here? All I could find is the printf direction converting binary to decimals.

ulfjack commented 1 year ago

Hi Keith! I'm afraid I don't have an implementation yet. I know how to do it, but not enough time these days.

keith-packard commented 1 year ago

Thanks for letting me know; maybe I'll find time to play with it someday :-)