This discussion is archived
1 Reply Latest reply: Apr 9, 2013 11:03 PM by EJP RSS

convert a double to 4 bytes

AbhishekJ Expert
Currently Being Moderated
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?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points