X-Recipient: archive-cygwin@delorie.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@cygwin.com
From: Peter Brown <pnbrown@llnl.gov>
Subject: Re: 1.7.8: Fortran I/O rounding inaccuracy
Date: Mon, 7 Mar 2011 17:15:03 +0000 (UTC)
Lines: 29
Message-ID: <loom.20110307T181232-654@post.gmane.org>
References: <AANLkTinwzNz4X8btcrjVm+3Lxp_30iqr4FkuB1U=rrr6@mail.gmail.com> <4D74FD73.7010900@saic.com> <4D7509D4.5000204@saic.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

