Here you can find the source of DoubleToBytes_With_Little_Endian(double number)
public static byte[] DoubleToBytes_With_Little_Endian(double number)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] DoubleToBytes_With_Little_Endian(double number) { long tmp = Double.doubleToLongBits(number); byte[] bytes = new byte[8]; for (int i = 0; i < 8; i++) { bytes[i] = (byte) (tmp & 0xFF); tmp = tmp >> 8;//from ww w .j a v a2 s . c o m } return bytes; } }