Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Roger K. Wells
On 03/07/2011 12:15 PM, Peter Brown wrote: Roger K. Wells 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 nu

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Peter Brown
Roger K. Wells 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 > >> digi

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Roger K. Wells
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.142857142857142

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Roger K. Wells
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.14285714285

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Tim Prince
On 3/7/2011 4:17 AM, Thomas Henlich wrote: I doubt our compiler is Fortran 2008 compliant, as at maximum it will be Fortran 2003 An identical phrase appears in Fortran 2003. Have you tested gfortran 4.3 on other platform ? Due to unavailability, I was not able to test this particular versio

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Thomas Henlich
> I doubt our compiler is Fortran 2008 compliant, as at maximum it will > be Fortran 2003 An identical phrase appears in Fortran 2003. > Have you tested gfortran 4.3 on other platform ? Due to unavailability, I was not able to test this particular version on other platforms. Tested ok: gfortra

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Corinna Vinschen
On Mar 7 10:39, 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: >

Re: 1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread marco atzeri
On Mon, Mar 7, 2011 at 10: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

1.7.8: Fortran I/O rounding inaccuracy

2011-03-07 Thread Thomas Henlich
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.142857142857142849212690 The expected output is: 0.