From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115914,eb58654c5683eea0 X-Google-Attributes: gid115914,public X-Google-Thread: 1164f8,eb58654c5683eea0 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10cebf,eb58654c5683eea0 X-Google-Attributes: gid10cebf,public From: dik@cwi.nl (Dik T. Winter) Subject: Re: VAX D-Float format Date: 1997/10/31 Message-ID: #1/1 X-Deja-AN: 286957554 Sender: news@cwi.nl (The Daily Dross) References: <34575f82.182344367@serve.installshield.com> <63aalh$7rj@usenet.pa.dec.com> Organization: CWI, Amsterdam Newsgroups: comp.sys.dec,comp.sys.dec.micro,comp.arch.arithmetic In article <63aalh$7rj@usenet.pa.dec.com> lionel@mail.dec.com (Steve Lionel) writes: > For all formats, the fraction is normalized and the radix point assumed to be > to the left of the MSB, hence 0.5 <= f < 1.0. The MSB, always being 1, is > not stored. The binary exponent is stored with a bias varying with type in > bits 14:n of the lowest-addressed word. I may note that D-Float is pretty similar in concept to IEEE fp. Converting a valid D-Float representation to IEEE double precision is in general straightforward (but beware of overflow), as is the reverse. One point though, although exponent bias is the same for both, there is a offset by one between exponents, because D-Float is normalized at 0.5 <= f < 1.0 while IEEE is normalized at 1.0 <= f < 2.0. I wish that the designers in their description of floating point representation had normalized on the range in which a fraction (mantissa) was normalized. -- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131 home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/