stevenk140
Programmer
I have an array of bytes which should make up a double.
double val;
byte[] doub = new byte[8];
doub[0] = arraybytes[20];
doub[1] = arraybytes[21];
doub[2] = arraybytes[22];
doub[3] = arraybytes[23];
doub[4] = arraybytes[24];
doub[5] = arraybytes[25];
doub[6] = arraybytes[26];
doub[7] = arraybytes[27];
val = doub;
This code does not work. How can I convert my byte[] doub into a double?
Steven
double val;
byte[] doub = new byte[8];
doub[0] = arraybytes[20];
doub[1] = arraybytes[21];
doub[2] = arraybytes[22];
doub[3] = arraybytes[23];
doub[4] = arraybytes[24];
doub[5] = arraybytes[25];
doub[6] = arraybytes[26];
doub[7] = arraybytes[27];
val = doub;
This code does not work. How can I convert my byte[] doub into a double?
Steven