Take a look at this page.
http://h71000.www7.hp.com/commercial/basic/basic_doc/bas_um_028.htm
>Hi, I am trying to figure out how to convert a double in java to an
>array of 8 bytes that is compatible with openvms alpha programs. It's
[quoted text clipped - 11 lines]
>Note that I can convert the double in java to a gfloat by doing a big
>endian/little endian swap and adding 32 to the second byte.
This will be much easier if you find documentation on the openvms
floating point format. Once you get it in it is a matter of
extracting bits, changing offsets and packing them together again.
If that is impossible to find, try looking at the formats for numbers
like
0 1 .5 .75 etc until you gradually piece together what the bits are
for.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Jim Korman - 02 Jan 2006 15:59 GMT
<snip>
>This will be much easier if you find documentation on the openvms
>floating point format. Once you get it in it is a matter of
[quoted text clipped - 4 lines]
>0 1 .5 .75 etc until you gradually piece together what the bits are
>for.
Goggling ["OpenVMS double binary format"] gets
http://h71000.www7.hp.com/commercial/basic/basic_doc/bas_um_028.htm
Appears to be what you're looking for.
Jim