Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com From: Chris Faylor Date: Wed, 16 Aug 2000 13:49:54 -0400 To: "'cygwin-developers AT sources DOT redhat DOT com'" Subject: Re: printf("%.0f", 0.1) => 0. Message-ID: <20000816134954.A10067@cygnus.com> Reply-To: cygwin-developers AT sources DOT redhat DOT com Mail-Followup-To: "'cygwin-developers AT sources DOT redhat DOT com'" References: <779F20BCCE5AD31186A50008C75D997917177B AT silldn_mail1 DOT sanwaint DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <779F20BCCE5AD31186A50008C75D997917177B@silldn_mail1.sanwaint.com>; from EFifer@sanwaint.com on Wed, Aug 16, 2000 at 12:31:31PM +0100 Could you send this patch to the newlib mailing list? The newlib maintainers have to approve this patch. cgf On Wed, Aug 16, 2000 at 12:31:31PM +0100, Fifer, Eric wrote: > >I discovered this when testing the latest Perl: > > main() > { > printf("%.0f\n", 0.1); > printf("%.0f\n", -0.1); > } > >Produces: > > 0. > -0. > >The trailing dot is the problem. Attached is a suggested >change that seems to fix the problem and not introduce any >others. > >Regards, > >Eric Fifer > -- cgf AT cygnus DOT com Cygnus Solutions, a Red Hat company http://sourceware.cygnus.com/ http://www.redhat.com/