Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2005 10:10:31 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Number of significand bits in long double?
Message-ID:  <20050804171031.GA97033@troutmask.apl.washington.edu>
In-Reply-To: <200508041708.j74H8EBA097692@gate.bitblocks.com>
References:  <42F24737.2060705@mac.com> <200508041708.j74H8EBA097692@gate.bitblocks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <machine/float.h>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050804171031.GA97033>