T
troy
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
more complicated than a big endian/little endian issue. Any ideas?
A double on openvms of '3495.0' has the following 8 bytes:
90 70 0 112 0 0 0 0 (openVMS Basic program was used to get the bytes)
A GFloat on openvms of '3495.0' has the following 8 bytes:
-53 64 0 78 0 0 0 0 (openVMS Basic program was used to get the bytes)
A double in java of '3495' has the following 8 bytes:
64 -85 78 0 0 0 0 0
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.
array of 8 bytes that is compatible with openvms alpha programs. It's
more complicated than a big endian/little endian issue. Any ideas?
A double on openvms of '3495.0' has the following 8 bytes:
90 70 0 112 0 0 0 0 (openVMS Basic program was used to get the bytes)
A GFloat on openvms of '3495.0' has the following 8 bytes:
-53 64 0 78 0 0 0 0 (openVMS Basic program was used to get the bytes)
A double in java of '3495' has the following 8 bytes:
64 -85 78 0 0 0 0 0
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.