delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/08/16/13:50:38

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT cygnus DOT com>
Date: Wed, 16 Aug 2000 13:49:54 -0400
To: "'cygwin-developers AT sources DOT redhat DOT com'" <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'" <cygwin-developers AT sources DOT redhat DOT com>
References: <779F20BCCE5AD31186A50008C75D997917177B AT silldn_mail1 DOT sanwaint DOT com>
Mime-Version: 1.0
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/

- Raw text -


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