http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47642
--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-02-08 20:25:12 UTC --- I am OK with using stdio-common/printf_fp.c as well. Also, after the 42 digits we do not need to go further and can chop it maybe with a few zeros padded. At least gfortran performas rounding directly from the string of digits and there is a maximum width we use/assume. I don't have the code in front of me, but 42 sounds about right and for debugging purposes it is helpful to have the string null terminated so we can insert printf calls to watch what it is doing.