Here you can find the source of byteArrayToFloat(byte[] b)
public static float byteArrayToFloat(byte[] b)
//package com.java2s; //License from project: Open Source License public class Main { public static float byteArrayToFloat(byte[] b) { int l = byteArrayToInt(b); return Float.intBitsToFloat(l); }/*from w w w . j a v a 2 s.c om*/ public static int byteArrayToInt(byte[] b) { return (b[0] << 24) + ((b[1] & 0xFF) << 16) + ((b[2] & 0xFF) << 8) + (b[3] & 0xFF); } }