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: <42C3E2ED.3030305@elimpex.com>
Date: Thu, 30 Jun 2005 14:17:49 +0200
From: Peter Mueller <peter.mueller.ls@elimpex.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805 Netscape/7.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Bug in printf ?
References: <20050630.194259.46635312.haro@kgt.co.jp>  <6632806.1120129611257.JavaMail.adm-moff@moffice2.nsc.no>  <20050630.202057.83613389.haro@kgt.co.jp>   <20050630.202554.129758646.haro@kgt.co.jp> <8864897.1120133151080.JavaMail.adm-moff@moffice2.nsc.no>
In-Reply-To: <8864897.1120133151080.JavaMail.adm-moff@moffice2.nsc.no>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Hi!


Peter J. Acklam wrote:

>haro@kgt.co.jp wrote:
>
>  
>
>>::How come "0.125" gets printed as "0.12", and not "1.3"?
>>                                                    ^^^ "0.13", off cource ;-)
>>    
>>
>
>Dealing with integers illustrates the matter more clearly. When
>the decimal value is exactly 0.5, then printf should round to the
>nearest *even* integer, as far as I know, so you should get
>  
>
Never heard of such a rule!
As I learned it in school, 0.5 should allways be rounded to 1 .


Bye, Peter
WOTLmade

--
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/

