Here you can find the source of toFloat(byte[] b, int pos)
public static float toFloat(byte[] b, int pos)
//package com.java2s; public class Main { public static float toFloat(byte[] b, int pos) { int accum = 0; for (int i = 0; i < 4; i++) { accum |= (b[i + pos] & 0xff) << i * 8; }/*from w ww. j av a 2s.c om*/ return Float.intBitsToFloat(accum); } }