Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 30 Jun 2005 21:44:57 +0900 (JST) Message-Id: <20050630.214457.02636322.haro@kgt.co.jp> To: pjacklam AT online DOT no Cc: cygwin AT cygwin DOT com Subject: Re: Bug in printf ? From: haro AT kgt DOT co DOT jp In-Reply-To: <8864897.1120133151080.JavaMail.adm-moff@moffice2.nsc.no> References: <20050630 DOT 202057 DOT 83613389 DOT haro AT kgt DOT co DOT jp> <20050630 DOT 202554 DOT 129758646 DOT haro AT kgt DOT co DOT jp> <8864897 DOT 1120133151080 DOT JavaMail DOT adm-moff AT moffice2 DOT nsc DOT 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/