Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Binary Numbers 343 Table A.10: Binary coded decimal (BCD) codes Decimal 0 1 2 3 4 5 6 7 8 9 BCD 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 entered. The least significant digit is added to the total unweighted, the next multiplied by 10 and added, the next by 100, and so on to give the total value in binary. After processing in binary, results may need to be displayed in BCD format on, for example, a seven-segment display. Binary to BCD conversion for output may be implemented as the inverse process to that described above. If the maximum value is, say, 9999, the value must be