Re: Number of significand bits in long double?

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Thu, 4 Aug 2005 10:10:31 -0700
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
Received on Thu Aug 04 2005 - 15:10:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:40 UTC