Here you can find the source of byteArrayToDouble(byte[] bytes)
public static Double byteArrayToDouble(byte[] bytes)
//package com.java2s; //License from project: Apache License public class Main { public static Double byteArrayToDouble(byte[] bytes) { long bits = byteArrayToLong(bytes); return Double.longBitsToDouble(bits); }/*from w w w . j ava2 s. co m*/ public static Long byteArrayToLong(byte[] bytes) { long number = 0l; int byteLength = bytes.length; for (int i = 0; i < byteLength; i++) { number |= ((long) (bytes[byteLength - i - 1] & 0xff) << (8 * i)); } return number; } }