Binary Codes
Binary Codes
Conversion or Coding?
+5 +0101 Plus 5
13 1101 is 13 (> 9)
Note that the result is MORE THAN 9, so must be
represented by two digits!
To correct the digit, add No. 6
8 1000 Eight
+5 +0101 Plus 5
decimal adjust
13 1101 is 13 (> 9)
+0110 so add 6
carry = 1 0011
• Ans: 4802
BCD code for 2905 : 0010 1001 0000 0101
BCD code for 1897 : 0001 1000 1001 0111
14