From owner-freebsd-current Thu Oct 31 14:37:43 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DEAE37B404 for ; Thu, 31 Oct 2002 14:37:42 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43F7443E77 for ; Thu, 31 Oct 2002 14:37:41 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.5) with ESMTP id g9VMbdeZ017826; Thu, 31 Oct 2002 14:37:39 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id g9VMbdaF017825; Thu, 31 Oct 2002 14:37:39 -0800 (PST) Date: Thu, 31 Oct 2002 14:37:38 -0800 From: Steve Kargl To: "M. Warner Losh" Cc: tlambert2@mindspring.com, bde@zeta.org.au, rittle@labs.mot.com, rittle@latour.rsch.comm.mot.com, current@FreeBSD.ORG, dschultz@uclink.Berkeley.EDU Subject: Re: Lack of real long double support Message-ID: <20021031223738.GA17221@troutmask.apl.washington.edu> References: <3DC0E0A7.290A57CA@mindspring.com> <20021031.013338.106483974.imp@bsdimp.com> <3DC17FC5.AF56552E@mindspring.com> <20021031.151847.03097281.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021031.151847.03097281.imp@bsdimp.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Oct 31, 2002 at 03:18:47PM -0700, M. Warner Losh wrote: > In message: <3DC17FC5.AF56552E@mindspring.com> > Terry Lambert writes: > : > Nope. The only difference between 53 bits and 64 bits of precision is > : > just that: precision. The number of bits for expoentent is > : > independent of this. > : > : .125 ^ 2 = 0.015625 > : .25 ^ 3 = 0.015625 > : > : So if I go from 3 digits of precision to 2 digits of precision for > : my mantissa, in order to represent the same number, I need a larger > : exponent. > > That's not how it works. The exponent is more like > > .1250000 * 2^3 > vs > .1249999 * 2^3 > > Both have exponent 3, but the differ by a bit or two in the mantissa. > Loren already posted a pointer to "What Every Scientist Should Know About Floating-Point Arithmetic" by David Goldberg. But, for Terry edification http://cch.loria.fr/documentation/IEEE754/ACM/goldberg.pdf This is only 1 of 66100 hits from a google search with keywords "floating point scientist". -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message