From owner-freebsd-standards Fri Apr 12 21: 4:26 2002 Delivered-To: freebsd-standards@freebsd.org Received: from treetop.robbins.dropbear.id.au (019.c.004.mel.iprimus.net.au [210.50.38.19]) by hub.freebsd.org (Postfix) with ESMTP id 6897A37B405 for ; Fri, 12 Apr 2002 21:04:11 -0700 (PDT) Received: from treetop.robbins.dropbear.id.au (localhost [127.0.0.1]) by treetop.robbins.dropbear.id.au (8.12.2/8.12.2) with ESMTP id g3D3s8ju009747; Sat, 13 Apr 2002 13:54:15 +1000 (EST) (envelope-from tim@treetop.robbins.dropbear.id.au) Received: (from tim@localhost) by treetop.robbins.dropbear.id.au (8.12.2/8.12.2/Submit) id g3D3s40G009746; Sat, 13 Apr 2002 13:54:04 +1000 (EST) Date: Sat, 13 Apr 2002 13:53:58 +1000 From: "Tim J. Robbins" To: "M. Warner Losh" Cc: freebsd-standards@FreeBSD.ORG Subject: Re: standards/36783 Message-ID: <20020413135358.A9710@treetop.robbins.dropbear.id.au> References: <200204121240.g3CCe3a52899@freefall.freebsd.org> <200204121639.g3CGdOZ90234@khavrinen.lcs.mit.edu> <20020412.121645.03985114.imp@village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020412.121645.03985114.imp@village.org>; from imp@village.org on Fri, Apr 12, 2002 at 12:16:45PM -0600 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Apr 12, 2002 at 12:16:45PM -0600, M. Warner Losh wrote: > This is no longer true. Long doubles can and do give better precision > than doubles, but at a high performance cost. printf can't print a > long double more precisely than what double can represent, however, > since printf casts it to a double first. This sounds like something that needs to get documented in printf(3), then eventually fixed (I can't think of an elegant way to fix it right now). What I'll do is leave the format string the same as for a double, and make a note explaining that it was working around a printf limitation. Thanks for the info. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message