title: How to convert byte array (containing hex values) to decimal
body: <p>I am writing some code for an Atmel micro-controller. I am getting some data via Uart, and I store these hex values into an array.</p>
  
  <p>Suppose the elements of the array are: 1F, 29, and 3C.</p>
  
  <p>I want to have one hex number like 0x1F293C, and convert it to a decimal number. So, I want to get “2042172” at the end.</p>
  
  <p>The array could have n elements, so I need a general solution.</p>
  
  <p>Thank you.</p>