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
Date: Thu, 30 Jun 2005 21:44:57 +0900 (JST)
Message-Id: <20050630.214457.02636322.haro@kgt.co.jp>
To: pjacklam@online.no
Cc: cygwin@cygwin.com
Subject: Re: Bug in printf ?
From: haro@kgt.co.jp
In-Reply-To: <8864897.1120133151080.JavaMail.adm-moff@moffice2.nsc.no>
References: <20050630.202057.83613389.haro@kgt.co.jp> 	<20050630.202554.129758646.haro@kgt.co.jp> 	<8864897.1120133151080.JavaMail.adm-moff@moffice2.nsc.no>
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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

Hi Peter,

Thank you for your explanation. I didn't know, until now, that
rounding should be done to the "nearest *even* integer".
Need to learn every day. ;-)

::Now I realize that Cygwin's printf doesn't get it right, because

Wow, what a coincidence. ;-)

Anyway, thanks for Peter and DaveK for looking into the issue.

Thanks
  Haro
=-----------------------------------------------------------------------
           _ _    Munehiro (haro) Matsuda
 -|- /_\  |_|_|   KGT Inc.
 /|\ |_|  |_|_|   2-8-8 Shinjuku, Shinjuku-ku Tokyo 160-0022, Japan
                  Tel: +81-3-3225-0767  Fax: +81-3-3225-0740



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

