Java byte数组转double类型示例如下:
public static double binaryArrayToDouble(byte[] binaryArray) {
long value = 0;
for (int i = 0; i < 8; i++) {
value |= ((long) (binaryArray[i] & 0xff)) << (8 * i);
}
return Double.longBitsToDouble(value);
}
注意:本文归作者所有,未经作者允许,不得转载