title: Hex to BCD conversion
body: <p>To convert <code>(213AFE)H</code> to BCD, first it has to be converted to binary which gives <code>(2177790)D</code>. Now each digit is converted to its BCD code which gives <code>(0010 0001 0111 0111 0111 1001 0000)BCD</code>. </p>
  
  <p>Another way is to convert the hex value to binary which gives <code>(0010 0001 0011 1010 1111 1110)B</code> and then do BCD adjust by adding 6 to each digit greater than 9 as follows:</p>
  
  <pre><code>0010 0001 0011 1010 1111 1110
  +              0110 0110 0110
  -----------------------------
  0010 0001 0100 0001 0110 0100 -&gt; 35092368D
  </code></pre>
  
  <p>The final result in the processes above are different. Is the second method wrong? Why?</p>