This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] gfortran: PR libfortran/20124 - incorrect roundingwhen writingfloating point numbers
- From: Bud Davis <bdavis at gfortran dot org>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Cc: François-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- Date: Fri, 11 Mar 2005 02:10:01 -0600
- Subject: Re: [PATCH] gfortran: PR libfortran/20124 - incorrect roundingwhen writingfloating point numbers
Approved and committed to both mainline and the gcc-4_0 branch with the
following test:
! { dg-do run }
! pr 20124
character*80 line
x = -.01
y = .01
write(line,'(2f10.2)') x, y
if (line.ne.' -0.01 0.01') call abort
end
--bud