X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_05,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Peter Brown Subject: Re: 1.7.8: Fortran I/O rounding inaccuracy Date: Mon, 7 Mar 2011 17:15:03 +0000 (UTC) Lines: 29 Message-ID: References: <4D74FD73 DOT 7010900 AT saic DOT com> <4D7509D4 DOT 5000204 AT saic DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 > >> 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