Re: is order urgent doubt



In article <lnej7bhm3l.fsf@xxxxxxxxxxxxxxx>,
Keith Thompson <kst-u@xxxxxxx> wrote:

How is a pair of doubles used to represent a single floating-point
number anyway?

One particular implementation:

http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=man&fname=/usr/share/catman/p_man/cat3/standard/math.z&srch=math


Long double arithmetic is supported by the compiler. The
representation used is not IEEE compliant; long doubles are
represented on this system as the sum or difference of two doubles,
normalized so that the smaller double is <= .5 ULP of the larger.
This is equivalent to a 107 bit mantissa with an 11 bit biased
exponent (bias = 1023), and 1 sign bit. In terms of decimal
precision, this is approximately 34 decimal digits.

Long double constants are coded as double precision constants followed
by the letter 'l' (upper or lower case). The largest (finite) long
double constant is 1.797693134862315807937289714053023e308L.

The smallest long double precision constant is
4.940656458412465441765687928682213e-324L.

Long doubles less than 1.805194375864829576069262081173746e-276L may
require a double denormal in their representation and therefore
contain less than 107 bits precision.

Long double NaNs and (signed) infinities are supported by the
compiler. Long double infinity is represented as the sum of a double
infinity and a double zero; similarly for NaNs.

--
"The shallow murmur, but the deep are dumb." -- Sir Walter Raleigh
.



Relevant Pages

  • Re: CPtrList - Please Help me understand
    ... object of type notice*, and you won't need to do casts at all. ... >Now although bp has a pointer to an object of type B (which we know because we created ... >compiler now happily does the assignment. ... >Generally, casting has no effect on the representation of a value, other than instructing ...
    (microsoft.public.vc.mfc)
  • Re: What I can to do with old PL/1 code?
    ... >> I have IBM Visual Age PL/1 compiler, ... > issues related to limitations on precision and representation of real ... > the same binary precision for all floating point numbers. ...
    (comp.lang.pl1)
  • Re: Cant read CString after serialization
    ... I insisted we have a textual representation of the data structures. ... I later wrote the same package for IDL when we were at ... Tartan Laboratories (a compiler company in Pittsburgh). ... David Lamb and John Nestor took ...
    (microsoft.public.vc.mfc)
  • Detailed Compiler Stages of a Statically Typed, Strict Functional Language?
    ... I am seeking reasonably canonical information on the compiler stages, ... By "functional language" I mean, ... What compiler transformations, expansions, name resolution renaming, ... point values is of special interest), inlining, beta representation, ...
    (comp.compilers)
  • Re: Why does 1.2 % 0.01 not equal to zero?
    ... My integer method is sort of a back door cheat. ... It avoids the real ... results of the % operator on floats or doubles is so insidious ... ... Eventually even the 128 bit decimal representation fails to provide ...
    (microsoft.public.dotnet.languages.csharp)