BCD -> Decimal
To pass the BCD to decimal the reversed path to the previous point must be followed: group the bits 4 by 4, look for every 4 bit block in the corresponding BCD table and write the result.
For example, to pass to decimal the BCD number 00111001.
First, you divide it into two blocks: 0011 and 1001, the first one is number 3 in the table, and the second, the 9th.
Thus, 00111001 is 39 in decimal.