Here you can find the source of bytesHighFirstToFloat(byte[] bytes, int start)
public static float bytesHighFirstToFloat(byte[] bytes, int start)
//package com.java2s; //License from project: Apache License public class Main { public static float bytesHighFirstToFloat(byte[] bytes, int start) { int l = bytesHighFirstToInt(bytes, start); return Float.intBitsToFloat(l); }//from www .j ava 2s . c om public static int bytesHighFirstToInt(byte[] bytes, int start) { int num = bytes[start + 3] & 0xFF; num |= ((bytes[start + 2] << 8) & 0xFF00); num |= ((bytes[start + 1] << 16) & 0xFF0000); num |= ((bytes[start] << 24) & 0xFF000000); return num; } }