Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <ba40711f0507060115463bbd6b@mail.gmail.com>
Date: Wed, 6 Jul 2005 04:15:05 -0400
From: Lev Bishop <lev.bishop@gmail.com>
Reply-To: Lev Bishop <lev.bishop@gmail.com>
To: cygwin@cygwin.com
Subject: Re: SV: Bug in printf ?
In-Reply-To: <ba40711f05070601064d5625be@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <6879888.1120133556579.JavaMail.adm-moff@moffice2.nsc.no> 	 <SERRANOOnXPJFcUFa4F00000395@SERRANO.CAM.ARTIMI.COM> 	 <ba40711f05070601064d5625be@mail.gmail.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j668FOti015001

On 06/07/05, Lev Bishop wrote:
> 4) I have no idea what mingw is doing, but it's different to the
> above. Gcc constructs the same double precision constants as on cygwin
> but strtod() is different and seems to have less precision, and
> printf() seems to work with about 16 digits precision. At a glance I'd
> say it rounds to zero, with exactly the precision of
... the precision of a raw double.

Ie, it looks like the cygwin build works slightly nicer than mingw
with plenty of extra precision for conversions to and from decimal,
and round-to-even for runtime conversions, which is a good thing.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


