From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6c45a37db02ba257 X-Google-Attributes: gid1164f8,public From: Dileep Bhandarkar Subject: Re: VAX Floating Point Date: 1995/09/06 Message-ID: <42kk0v$ro9@itnews.sc.intel.com>#1/1 X-Deja-AN: 109596773 references: <42k3ju$bmu@news.ameritel.net> content-type: text/plain; charset=us-ascii organization: Intel mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.1N (Windows; I; 32bit) johnson@atc.ameritel.net wrote: >Hello, > >I have some hex patterns which represent 64-bit floating point values on a VAX. What I need is to convert them >to 64-bit floats on a Motorola processor (IEEE standard float, 11-bit mantissa). There are several factors to look for. First, the VAX formats are laid out for 16-bit contiguity. So, you have to swap the 16-bits words around. Secondly, VAX G uses an exponent bias of 1024, while IEEE uses 1023. Furthermore, VAX fraction is .1fff..., IEEE is 1.ffff... Might help if you looked at a VAX Architecture Handbook.