title: How can I convert a binary to a decimal without using a loop?
body: <p>I have a 12-bit binary that I need to convert to a decimal. For example:</p>
  
  <pre><code>A = [0,1,1,0,0,0,0,0,1,1,0,0];
  </code></pre>
  
  <p>Bit 1 is the most significant bit, Bit 12 is the least significant bit.</p>