Here you can find the source of toFloat(byte[] bytes, int index)
public static float toFloat(byte[] bytes, int index)
//package com.java2s; //License from project: Apache License public class Main { public static float toFloat(byte[] bytes, int index) { return Float.intBitsToFloat(toInt(bytes, index)); }// w ww . j av a 2 s . c om public static int toInt(byte[] bytes, int index) { return (0xff & bytes[index]) | (0xff00 & (bytes[index + 1] << 8)) | (0xff0000 & (bytes[index + 2] << 16)) | (0xff000000 & (bytes[index + 3] << 24)); } }