Here you can find the source of byteToFloat(byte[] b)
public static float byteToFloat(byte[] b)
//package com.java2s; //License from project: Apache License public class Main { public static float byteToFloat(byte[] b) { int l;/* w w w. j a va 2 s . c o m*/ l = b[0]; l &= 0xff; l |= ((long) b[1] << 8); l &= 0xffff; l |= ((long) b[2] << 16); l &= 0xffffff; l |= ((long) b[3] << 24); l &= 0xffffffffl; return Float.intBitsToFloat(l); } }