how to convert double to byte[] openvms format?
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.
.
Relevant Pages
- Re: how to convert double to byte[] openvms format?
... >array of 8 bytes that is compatible with openvms alpha programs. ... >A double in java of '3495' has the following 8 bytes: ... >endian/little endian swap and adding 32 to the second byte. ... (comp.lang.java.programmer) - Re: Guidance with OpenVMS IA64 8.3 with Java 1.5 Problems
... Guidance with OpenVMS IA64 8.3 with Java 1.5 Problems ... rewrite a rather large HMI program from x-windows and 'C' to java. ... how to get performance out of java under OpenVMS Ia64 and Alpha ... and you might also look at a basic difference between VMS and Windows/UNIX ... (comp.os.vms) - Re: Guidance with OpenVMS IA64 8.3 with Java 1.5 Problems
... Guidance with OpenVMS IA64 8.3 with Java 1.5 Problems ... rewrite a rather large HMI program from x-windows and 'C' to java. ... how to get performance out of java under OpenVMS Ia64 and Alpha ... and you might also look at a basic difference between VMS and Windows/UNIX ... (comp.os.vms) - Re: Guidance with OpenVMS IA64 8.3 with Java 1.5 Problems
... Guidance with OpenVMS IA64 8.3 with Java 1.5 Problems ... rewrite a rather large HMI program from x-windows and 'C' to java. ... performance of these apps got better, but had lots of rough spots. ... displayed different classes of graphics operations. ... (comp.os.vms) - [JAVA on OpenVMS] JAVA6 Status?
... For me, this was a surprise, as there is still no mention on the VMS homepage ... On the HPQ Java homepage however, the JAVA6 VMS beta *is* listed ... OpenVMS Integrity Version 8.3 system. ... To request the JDK 6.0 beta kit for download, ... (comp.os.vms) |
|