Converting binary floating-point numbers to and from base 10
without discrepancies is
two excellent papers on the subject
by William D Clinger,
Guy L. Steele Jr., and Jon L White
are mentioned in the Bibliography.
about this FAQ list