title: Convert 3 Hex (byte) to Decimal
body: <p>How do I take the hex <code>0A 25 10 A2</code> and get the end result of <code>851.00625</code>? This must be multiplied by <code>0.000005</code>. I have tried the following code without success:</p>
  
  <pre><code> byte oct6 = 0x0A;
   byte oct7 = 0x25;
   byte oct8 = 0x10;
   byte oct9 = 0xA2;
  
   decimal BaseFrequency = Convert.ToDecimal((oct9 | (oct8 &lt;&lt; 8) | (oct7 &lt;&lt; 16) | (oct6 &lt;&lt; 32))) * 0.000005M;
  </code></pre>
  
  <p>I am not getting <code>851.00625</code> as the BaseFrequency.</p>