BCD = Binary Coded Decimal, each decimal digit (d) is encoded as a pattern of four binary bits (b):
0d = 0000b
1d = 0001b
2d = 0010b
3d = 0011b
4d = 0100b
5d = 0101b
6d = 0110b
7d = 0111b
8d = 1000b
9d = 1001b
So then,
16400 =
0001 0110 0100 0000 0000
Normally these would be grouped into bytes, so that two decimal digits were encoded as BCD into each 8-bit byte:
00000001 01100100 00000000 = 1, 100, 0 (or in hexadecimal as it would be more commonly shown = $01, $64, $00 or if writing in the syntax commonly used in the programming languages "C" or "C++" or derrivatives it would look like: 0x01, 0x64, 0x00). Note that a leading "0" (0000 in binary) has been added to the first byte since there were not enough decimal digits to fill the whole byte.
2006-12-25 18:53:12
·
answer #1
·
answered by Mustela Frenata 5
·
0⤊
1⤋
BCD is a shorthand for Binary Coded Decimal.
It is a mix of binary and decimal number representation systems.
It replaces each decimal digit with its binary representation using four bits.
For example, 26 is 0010 0110, where 2 is 0010 and 0110 is 6.
Now, to to this for 16400, one needs only to know the binary representation for the decimal digits 1,6,4&0.
1 is 0001
6 is 0110
4 is 0100
0 is 0000
So the BCD of 16400 is
0001 0110 0100 0000 or
0001011001000000
2006-12-25 19:05:23
·
answer #2
·
answered by mulla sadra 3
·
0⤊
1⤋
BCD = Binary Coded Decimal
each decimal digit is encoded as a pattern of four binary bits:
0 = 0000
1 = 0001
2 = 0010
3 = 0011
4 = 0100
5 = 0101
6 = 0110
7 = 0111
8 = 1000
9 = 1001
these combination is used to represent the no. in bcd equivalent to decimal
2006-12-25 20:48:19
·
answer #3
·
answered by girish sahare 2
·
0⤊
1⤋
00010110010000000000
take ech number apart and write it as binary with 4 digits
2006-12-25 18:53:12
·
answer #4
·
answered by gjmb1960 7
·
0⤊
1⤋