Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

convert a double to 4 bytes

AbhishekJApr 10 2013 — edited Apr 10 2013
I need to translate a double to an array of 4 bytes. I have been doing that for a long value for some time now (converting it to a 4 byte integer and then converting to a byte array, of course it means it reduces the maximum value that can be passed in that long variable). But how do I do the same for a double?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2013
Added on Apr 10 2013
1 comment
1,080 views