From owner-freebsd-bugs Fri Oct 17 18:28:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA20773 for bugs-outgoing; Fri, 17 Oct 1997 18:28:44 -0700 (PDT) (envelope-from owner-freebsd-bugs) Received: from sam.networx.ie (ts25-26.dublin.indigo.ie [194.125.145.156]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA20768 for ; Fri, 17 Oct 1997 18:28:34 -0700 (PDT) (envelope-from mike@NetworX.ie) Received: from mike (mike.networx.ie [194.9.12.33]) by sam.networx.ie (8.8.5/8.8.5) with SMTP id XAA15841 for ; Fri, 17 Oct 1997 23:18:45 +0100 (BST) X-Organisation: I.T. NetworX Ltd X-Business: Network Consultancy and Training X-Address: 67 Merrion Square, Dublin 2, Ireland X-Voice: +353-1-676-8866 X-Fax: +353-1-676-8868 Date: Sat, 18 Oct 1997 00:14:21 BST From: Michael Ryan Reply-To: mike@NetworX.ie Subject: Rounding up is -odd- To: FreeBSD Bugs Message-ID: Priority: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, Why does printf "%1.2f\n" 7.005 produce 7.00 while printf "%1.2f\n" 8.005 produces 8.01 ? Number from 8.005 to 15.005 and 32.005 to 62.005 round up, while others in this range don't! Bye, Mike ---