View Single Post
Old 2005-09-12, 16:54   #1
tinhnho
 
Jan 2005

13 Posts
Default Convert Binary to BCD code

1. A 16-bit register in a computer contains 10110011 11000100. What does its contents represent if it contains
a) a 4-digit decimal number in the BCD(binary coded decimal) code,

HEre what i have:

First i convert binary to decimal and have 46020 in decimal.
Then i use the BCD table in the book to convert it from decimal to BCD. Answer= 0100 0110 0000 0001 0000

Please check if i did it wrong. Thanks alot
tinhnho is offline   Reply With Quote