private static float bytesToFloat ( byte b0 , byte b1 ) { int mantissa = unsignedToSigned ( unsignedByteToInt ( b0 ) + ( ( unsignedByteToInt ( b1 ) & 0x0F ) << 8 ) , 12 ) ; int exponent = unsignedToSigned ( unsignedByteToInt ( b1 ) >> 4 , 4 ) ; return ( float ) ( mantissa * Math . pow ( 10 , exponent ) ) ; }
Convert signed bytes to a 16 - bit short float value .