Closed glebm closed 5 months ago
With #cfb71693, I added David M. Gay's dtoa.c to PDCLib, admitting defeat (for now) on the FP conversion front. That should give us strtod() out of the box, with integration into scanf() and printf() the next thing to do. There has not been any detailed testing on the configuration yet, but the weekend is over and I wanted to get this pushed before I return to the 9-to-5 work.
Loosely based on the SQLite implementation from:
https://github.com/sqlite/sqlite/blob/6161cdd446eec170f7c0edf58d0d72a2cd3c5f85/src/util.c#L478
Not implemented:
errno
to ERANGE on overflow / underflow.SQLite is Public Domain.
/cc @JayFoxRox