Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@yrl.co.uk (John Laird)
Subject: Re: VAX D-Float format
Date: 1997/11/10	[thread overview]
Message-ID: <MO+w1LCGdBFn@yrl.co.uk> (raw)
In-Reply-To: 3461DAA6.41C6@alpha.ece.jhu.edu


In article <3461DAA6.41C6@alpha.ece.jhu.edu>, Philippe Pouliquen <philippe@alpha.ece.jhu.edu> writes:
>
>(much snipped)
>
> Here is the generic bit pattern for the VAX and IEEE floats:
> 
> Sign  Exponent       Mantissa        IEEE value       VAX value
> 
> 0     1000...000     000...000       2^1=2            2^0=1
>
I will bet you the Alphastation on my desk that you are wrong (and it's
not even mine to gamble).  This bit pattern interpreted as either F_floating
or D_floating on a VAX (or an Alpha) is _0.5_.  The zero mantissa represents
a binary fraction of 0.1 or 1/2.  The exponent of 128, after removal of
the 128 excess, is 0.  So we have 1/2 times 2 raised to the power 0, ie. 0.5 !
I believe IEEE normalises to 1.F as opposed to 0.F (as Steve Lionel correctly
stated), and the excess is also different by 1, resulting in a factor of 4
when comparing the same bit pattern against F_FLOAT or D_FLOAT.
-- 
John Laird (john@yrl.co.uk)           "I have discovered a truly elegant sig,
Yezerski Roper Ltd                    sadly there is no room here to show it."
http://www.yrl.co.uk



  reply	other threads:[~1997-11-10  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 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
1997-11-06  5:00       ` Philippe Pouliquen
1997-11-10  5:00         ` John Laird [this message]
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 ` 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-11-05  5:00 ` VAX D-Float format 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