Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn@brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: Bug in 4.1BSD C library "printf" (actually _doprnt) Message-ID: <3948@sri-arpa.UUCP> Date: Sun, 7-Aug-83 21:58:44 EDT Article-I.D.: sri-arpa.3948 Posted: Sun Aug 7 21:58:44 1983 Date-Received: Mon, 8-Aug-83 21:16:16 EDT Lines: 8 From: Doug Gwyn (VLD/VMB) I don't think that's a bug. "%1.0f" means use a minimum field width of 1 character with 0 characters after the decimal point and no decimal point, but as many characters as required left of the decimal point. So 10.0 converted this way would give you "10", etc. Printf's philosophy is to never truncate significant digits.