X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 7 Mar 2011 11:45:10 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7.8: Fortran I/O rounding inaccuracy Message-ID: <20110307104510.GM6393@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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: > 0.14285714285714284921269000000000 > The expected output is: > 0.14285714285714284921269268124888 > [...] > The problem seems limited to the Fortran language, because the C call > printf("%35.32f\n", 0.14285714285714285) prints the expected result: > 0.14285714285714284921269268124888 So it's not a Cygwin bug after all. It's a bug in the GNU fortran compiler or one of its libraries. You should ask about this in a GNU fortran mailing list, perhaps. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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