delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/07/12:15:33

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 <pnbrown AT llnl DOT 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 AT mail DOT gmail DOT com> <4D74FD73 DOT 7010900 AT saic DOT com> <4D7509D4 DOT 5000204 AT saic DOT com>
Mime-Version: 1.0
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019