From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 17:10:33 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 2452816A41F for ; Thu, 4 Aug 2005 17:10:33 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCA5F43D46 for ; Thu, 4 Aug 2005 17:10:32 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id j74HAV79097075; Thu, 4 Aug 2005 10:10:31 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id j74HAVX0097074; Thu, 4 Aug 2005 10:10:31 -0700 (PDT) (envelope-from sgk) Date: Thu, 4 Aug 2005 10:10:31 -0700 From: Steve Kargl To: Bakul Shah Message-ID: <20050804171031.GA97033@troutmask.apl.washington.edu> References: <42F24737.2060705@mac.com> <200508041708.j74H8EBA097692@gate.bitblocks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508041708.j74H8EBA097692@gate.bitblocks.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: Number of significand bits in long double? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 17:10:33 -0000 On Thu, Aug 04, 2005 at 10:08:14AM -0700, Bakul Shah wrote: > > PROPERTIES OF LONG DOUBLE > > Base = 2 > > Significant base digits = 53 (= at least 15 decimal digits) > > $ cat x.c > #include > static double x = DBL_MAX; > static long double min = LDBL_MIN; > static long double max = LDBL_MAX; > So this indicates long double is 15 bits of exponent, 64 bits of mantissa. No. It has 15 bits for the exponent and uses only 53 bits for the significand on i386. -- Steve