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: 10cebf,eb58654c5683eea0 X-Google-Attributes: gid10cebf,public X-Google-Thread: 1164f8,eb58654c5683eea0 X-Google-Attributes: gid1164f8,public From: lionel@mail.dec.com (Steve Lionel) Subject: Re: VAX D-Float format Date: 1997/11/05 Message-ID: <63q51i$8qa@usenet.pa.dec.com>#1/1 X-Deja-AN: 287211144 Distribution: world Sender: lionel@quark (Steve Lionel) References: <34575f82.182344367@serve.installshield.com> <63aalh$7rj@usenet.pa.dec.com> <345e03ce.617620030@serve.installshield.com> Organization: Digital Equipment Corporation, Nashua NH Reply-To: lionel@mail.dec.com (Steve Lionel) Newsgroups: comp.sys.dec,comp.sys.dec.micro,comp.arch.arithmetic 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