Here you can find the source of FloatToBytesLE(final float value)
public final static byte[] FloatToBytesLE(final float value)
//package com.java2s; //License from project: Creative Commons License public class Main { public final static byte[] FloatToBytesLE(final float value) { return IntToBytesLE(Float.floatToIntBits(value)); }/*from ww w . j a v a 2 s . co m*/ public final static byte[] IntToBytesLE(final long val) { byte[] buf = new byte[4]; for (int i = 0; i < 4; i++) { buf[i] = (byte) (val >>> (8 * i)); } return buf; } }