This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.8: Fortran I/O rounding inaccuracy
Roger K. Wells <ROGER.K.WELLS <at> saic.com> writes:
>
> On 03/07/2011 10:44 AM, Roger K. Wells wrote:
> > On 03/07/2011 04:39 AM, Thomas Henlich wrote:
> >> Hi,
> >>
> >> I found the following bug in cygwin 1.7.8 on Windows XP:
> >>
> >> Fortran I/O rounding truncates the result after a certain number of
> >> digits. The following program:
> >> ===
> >> write(*, '(f35.32)') 0.14285714285714285d0
> >> end
> >> ===
> >> gives this output:
> >> 0.14285714285714284921269000000000
> >> The expected output is:
> >> 0.14285714285714284921269268124888
> >>
I don't think this has anything to do with cygin. On our linux system I get
With Intel ifort:
0.14285714285714284921269268124888
With gfortran 4.1.2s544
0.14285714285714284921269270000000
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple