Here you can find the source of getFloat(int offset, byte[] fromBytes)
public static float getFloat(int offset, byte[] fromBytes)
//package com.java2s; //License from project: Open Source License public class Main { public static float getFloat(int offset, byte[] fromBytes) { final float toFloat; final int fromInt = getInt(offset, fromBytes); toFloat = Float.intBitsToFloat(fromInt); return toFloat; }// w w w. j a va2s . co m public static int getInt(int offset, byte[] fromBytes) { final int toInt; toInt = ((0xff & fromBytes[offset + 0]) << 24) | ((0xff & fromBytes[offset + 1]) << 16) | ((0xff & fromBytes[offset + 2]) << 8) | ((0xff & fromBytes[offset + 3]) << 0); return toInt; } }