From: lionel@mail.dec.com (Steve Lionel)
Subject: Re: VAX D-Float format
Date: 1997/11/05 [thread overview]
Message-ID: <63q51i$8qa@usenet.pa.dec.com> (raw)
In-Reply-To: 345e03ce.617620030@serve.installshield.com
In article <345e03ce.617620030@serve.installshield.com>,
chiehcheng@geocities.com (Chieh Cheng) writes:
|>On 30 Oct 1997 15:55:29 GMT, lionel@mail.dec.com (Steve Lionel) wrote:
|>> Type Exponent bits Exponent bias Fraction bits (including hidden)
|>> ==========================================================================
|>> F 8 128 24
|>> D 8 128 56
|>> G 11 1024 53
|>> H 15 16384 113
|>>
|>>Example: +1.5 in F float is hex 000040C0 (fraction of .11[base 2], biased
|>>exponent of 129)
|>
|>Is that conversion correct? I can't seem to figure out the conversion.
|>I thought the bias is 128, how come it is 129 in the example.
|>
|>I tried the following conversions, but none of them give the correct
|>answer. What am I doing wrong?
In VAX floating, the fraction is 0.F, not 1.F as it is in IEEE float.
--
Steve Lionel mailto:Steve.Lionel@digital.com
Fortran Development http://www.digital.com/info/slionel.html
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DIGITAL Fortran, see http://www.digital.com/fortran
next prev parent reply other threads:[~1997-11-05 5:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-29 5:00 VAX D-Float format Chieh Cheng
1997-10-30 5:00 ` Steve Atkins
1997-10-31 5:00 ` Pedasmith
1997-10-30 5:00 ` Hoff Hoffman
1997-10-30 5:00 ` Steve Lionel
1997-10-31 5:00 ` Dik T. Winter
1997-10-31 5:00 ` John Wilson
1997-11-03 5:00 ` Dik T. Winter
1997-11-03 5:00 ` Chieh Cheng
1997-11-05 5:00 ` Steve Lionel [this message]
1997-11-06 5:00 ` Philippe Pouliquen
1997-11-10 5:00 ` John Laird
1997-10-30 5:00 ` Gregg E Economou
1997-10-31 5:00 ` Chieh Cheng
1997-11-05 5:00 ` WTB: Iomega Zip Drive Jerome Fine
[not found] ` <199711051454.JAA02820@dbit.dbit.com>
1997-11-05 5:00 ` Jerome Fine
1997-10-30 5:00 ` VAX D-Float format John Laird
1997-11-05 5:00 ` John Foust
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox