From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c164973412164e0 X-Google-Attributes: gid1164f8,public From: gbcacm@ccs.neu.edu (Peter Sherwood) Subject: Re: VAX double-precision format Date: 1995/07/02 Message-ID: <3t76s0$7mc@camelot.ccs.neu.edu>#1/1 X-Deja-AN: 105520521 references: <3t15tm$43t@westie.mid.net> organization: College of Computer Science, Northeastern University. newsgroups: comp.sys.dec Mike Unverferth (mju@tnt) wrote: : I have some data files containing values in VAX double-precision. : I need to convert these values to Intel (IEEE) floating-point. : Can someone provide the format and/or C code to do the conversion? The format (D_floating"), is on page 35 of the VAX Architecture Handbook, and also available in other publications that describe the VAX instruction set, possibly even in on-line HELP MACRO. The 64-bit data is stored in 4 16-bit words as sign | 8-bit excess-128 2's exponent | 7-bit ms fraction with 'hidden' bit 16-bit ms-1 fraction 16-bit ms-2 fraction 16-bit ls fraction ----------------------------------------------------------------------------- Peter Sherwood (617) 332-8880 (voice) (617) 969-2101 (fax) gbcacm@ccs.neu.edu -----------------------------------------------------------------------------