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 Message-Id: <4.3.1.2.20020522193403.02611bb0@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Wed, 22 May 2002 19:34:42 -0400 To: Pavol Juhas , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: bug in /usr/bin/printf "%4.0f\n" 0.1 In-Reply-To: <20020522192500.B2597@seas.upenn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 07:25 PM 5/22/2002, Pavol Juhas wrote: >Hi, >I am using recent Cygwin on WindowsXP professional. >I have found this bug in when using /usr/bin/printf: >If printf "%4.0f" rounds its argument to 0, it only prints 3 >characters instead of 4, e.g.: > >$ printf "%4.0f\n%4.0f\n" 0 0.1 > 0 > 0 > >Can you also see this? Yes, I can reproduce this with Cygwin DLL 1.3.10. >Originally, I have found this problem in gawk, but /usr/bin/printf behaves >in the same way. I guess the problem is somewhere in the runtime libraries. Probably. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/