Content deleted Content added
m Automated conversion |
Fixing a table |
||
Line 1:
'''Binary coded decimal''' (BCD) is a way of encoding numbers in computer memory. In BCD, numbers are represented as decimal digits, and each digit is represented by four [[bit]]s:
Digit Bits Digit Bits
'''0''' 0000 '''5''' 0101
'''1''' 0001 '''6''' 0110
Line 7:
'''3''' 0011 '''8''' 1000
'''4''' 0100 '''9''' 1001
To encode a number such as 127, then, one simply encodes each of the decimal digits as above, giving (0001, 0010, 0111).
|