| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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 |
::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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |