Here you can find the source of toFloat(byte[] b)
public static float toFloat(byte[] b)
//package com.java2s; //License from project: Apache License public class Main { public static float toFloat(byte[] b) { int l;/*w w w .j a v a 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); return Float.intBitsToFloat(l); } }