Message82708
In all this discussion, it seems that we have not discussed the
possibility of adapting David Gay's code, dtoa.c, which nicely handles
both halves of the problem. It's also free and has been well exercised
over the years.
It's available here: http://www.netlib.org/fp/
It'd probably have to be touched up a bit. Guido notes that, for
example, malloc is called without checking the return value.
Nevertheless, the core is what we're looking for, I believe.
It's described in the paper: "Correctly rounded binary-decimal and
decimal-binary conversions", David M. Gay
It comes recommended by Steele and White (output) and by Clinger
(input), in the retrospectives on their seminal papers. |
|
Date |
User |
Action |
Args |
2009-02-25 17:09:55 | preston | set | recipients:
+ preston, gvanrossum, tim.peters, skip.montanaro, nascheme, rhettinger, amaury.forgeotdarc, mark.dickinson, christian.heimes, alexandre.vassalotti, noam |
2009-02-25 17:09:54 | preston | set | messageid: <1235581794.5.0.96190080014.issue1580@psf.upfronthosting.co.za> |
2009-02-25 17:09:53 | preston | link | issue1580 messages |
2009-02-25 17:09:51 | preston | create | |
|