Here you can find the source of ByteToFloat(byte[] b)
public static float ByteToFloat(byte[] b)
//package com.java2s; public class Main { public static float ByteToFloat(byte[] b) { return Float.intBitsToFloat(ByteToInt(b)); }//from ww w. j av a2s . com public static int ByteToInt(byte[] b) { int targets = (b[0] & 0xff) | ((b[1] << 8) & 0xff00) | ((b[2] << 24) >>> 8) | (b[3] << 24); return targets; } }