Here you can find the source of doubleToByteArray(double value)
static byte[] doubleToByteArray(double value)
//package com.java2s; //License from project: Open Source License public class Main { static byte[] doubleToByteArray(double value) { return longToByteArray(Double.doubleToRawLongBits(value)); }// ww w.j a va2 s .c o m static byte[] longToByteArray(long value) { return new byte[] { (byte) value, (byte) (value >> 8), (byte) (value >> 16), (byte) (value >> 24), (byte) (value >> 32), (byte) (value >> 40), (byte) (value >> 48), (byte) (value >> 56) }; } }