opendylan
opendylan copied to clipboard
Add float formatter, %f, to format
format should have a way to format floating point numbers. I assume we'll use %f. Depends on #225 and ties into #1158.
The io library in Gwydion Dylan has an implementation of this, at https://github.com/dylan-hackers/gwydion/blame/master/common/io/format.dylan
Note for future reference that the current state-of-the-art in implementing float-to-string is Ryū, described in https://dl.acm.org/citation.cfm?id=3192369
For additional reference, https://github.com/jk-jeon/dragonbox is said to be faster than Ryū.