1. I 'd like to write (using operator<<) a double to file such that, when I
read it back (using operator>>), I get exactly the same value (no loss of
precision)
2. When 1 is solved, is it a way to write only needed digits (not to
trailing 0's). For example: 1.23456E-2 and, not 1.234560000000000E-2
Thank you,
Christophe Bourez
Download copies of dtoa.c and g_fmt.c from
http://netlib.bell-labs.com/netlib/fp/index.html, then spend about a
week understanding how they do what they do. It's not easy.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)