Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static float getFloat(byte[] b, int index) { int l = b[(index + 0)]; l &= 255; l = (int) (l | b[(index + 1)] << 8); l &= 65535; l = (int) (l | b[(index + 2)] << 16); l &= 16777215; l = (int) (l | b[(index + 3)] << 24); return Float.intBitsToFloat(l); } }