This is the mail archive of the
mailing list for the GNU Fortran project.
Re: [patch, libgfortran] PR48906 Wrong rounding results with -m32
- From: jvdelisle at charter dot net
- To: Thomas Henlich <thenlich at users dot sourceforge dot net>
- Cc: Janne Blomqvist <blomqvist dot janne at gmail dot com>, gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 11 Jun 2011 14:23:56 -0400 (EDT)
- Subject: Re: [patch, libgfortran] PR48906 Wrong rounding results with -m32
On Sat, Jun 11, 2011 at 8:56 AM, Thomas Henlich wrote:
On Sat, Jun 11, 2011 at 14:41, jerry DeLisle <email@example.com>
This was established as solution to PR48488 where we had two choices
selecting the significant digits. Nine significant digits was
a requirement to guarantee round trip in all cases. The
test case was revised because after we corrected the formatting in
it started to fail and I observed the test case was looking for the
number of significant digits.
Based on this, I would suggest we leave it as I have it, which is
I'm afraid it's not.
1.23450002E-06 has nine significant digits. That's how it should be.
We don't want 1PG16.9E2 editing for list-directed and G0,
but G16.9E2 for the F editing range and 1PE16.8E2 editing for the E
This is to make sure the result always has nine significant digits,
whether in the F or E range.
My bad, I counted across wrong. Working on it. Coffee deficiency in
the early morning.