This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author preston
Recipients alexandre.vassalotti, amaury.forgeotdarc, christian.heimes, gvanrossum, mark.dickinson, nascheme, noam, preston, rhettinger, skip.montanaro, tim.peters
Date 2009-02-25.17:09:51
SpamBayes Score 0.005040329
Marked as misclassified No
Message-id <1235581794.5.0.96190080014.issue1580@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-02-25 17:09:55prestonsetrecipients: + preston, gvanrossum, tim.peters, skip.montanaro, nascheme, rhettinger, amaury.forgeotdarc, mark.dickinson, christian.heimes, alexandre.vassalotti, noam
2009-02-25 17:09:54prestonsetmessageid: <1235581794.5.0.96190080014.issue1580@psf.upfronthosting.co.za>
2009-02-25 17:09:53prestonlinkissue1580 messages
2009-02-25 17:09:51prestoncreate