Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: johnson@atc.ameritel.net
Subject: VAX Floating Point
Date: 1995/09/06	[thread overview]
Message-ID: <42k3ju$bmu@news.ameritel.net> (raw)

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). Here are the numbers:

1)  f0 49 71 e7 85 6a 48 b3
2)  88 b6 00 30 00 00 00 00
3)  d4 c0 9e ba 4e ea e0 4f
4)  d2 3c b4 3f 00 00 00 00
5)  a1 46 9d 0d 00 fa 00 00
6)  18 40 22 1b b9 b0 a0 32
7)  76 40 f3 1e bc af c0 87
8)  36 c1 63 b4 53 33 68 ab
9)  09 b3 df 19 2d 85 58 e8


I've tried numerous ways of byte-swapping, but some of the numbers appear to be pretty far out no matter what I 
do. Also, I don't know if the VAX numbers were generated using the G-FLOAT or D-FLOAT.

ANY help would be appreciated. It would be fantastic is someone with access to a VAX would memcpy() these hex 
patterns into a "double" and post a response indicating what the numbers are supposed to be. Once I know what 
I'm shooting for, it'll be a whole lot easier to verify that we can decode them properly.


Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks Thanks 

Tony J.

P.S. If you only feel like testing ONE of the above patterns, please use number 5 (a1 46 9d 0d 00 fa 00 00)



             reply	other threads:[~1995-09-06  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-09-06  4:00 johnson [this message]
1995-09-06  4:00 ` VAX Floating Point Dileep Bhandarkar
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