title: convert byte array to double
body: <p>Why am I getting garbage out of the following function?</p>
  
  <p>The incoming <code>_data</code> argument is <code>byte[] = {6D, F3, B4, 15}</code><br>
  The <code>_endian</code> argument is <code>ByteOrder.ByteOrder.LITTLE_ENDIAN</code><br></p>
  
  <pre><code> ByteBuffer m_ByteBuffer; 
   public static double ByteToDouble(byte[] _data, int offset, ByteOrder _endian){
          synchronized (m_ByteBuffer) {
              m_ByteBuffer.clear();
              m_ByteBuffer.order(_endian);
              m_ByteBuffer.position(0);
              m_ByteBuffer.get(_data);
              m_ByteBuffer.position(0);
          }
          return m_ByteBuffer.getDouble();
  
      }
  </code></pre>