Difference between revisions of "BCD"
Chris Tyler (talk | contribs) (Created page with 'Category:Computer Architecture ''Binary coded decimal'' is a binary representation of decimal numbers where each nibble (4 bits) in a word represents…') |
Chris Tyler (talk | contribs) |
||
Line 2: | Line 2: | ||
''Binary coded decimal'' is a binary representation of decimal numbers where each [[Word#Nibble|nibble]] (4 bits) in a [[Word|word]] represents a separate decimal digit. | ''Binary coded decimal'' is a binary representation of decimal numbers where each [[Word#Nibble|nibble]] (4 bits) in a [[Word|word]] represents a separate decimal digit. | ||
− | For example, in BCD, the value 128 | + | For example, in BCD, the value 128 would be represented in a 16-bit value as: |
− | + | Binary: 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 | |
− | |||
− | |||
− | |||
− | |||
− | |||
Decimal: 0 1 2 8 | Decimal: 0 1 2 8 | ||
− | (Note that, in basic binary integer representation, | + | (Note that, in basic binary integer representation, the same binary number represents the decimal value 296). |
Revision as of 11:39, 14 January 2014
Binary coded decimal is a binary representation of decimal numbers where each nibble (4 bits) in a word represents a separate decimal digit.
For example, in BCD, the value 128 would be represented in a 16-bit value as:
Binary: 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 Decimal: 0 1 2 8
(Note that, in basic binary integer representation, the same binary number represents the decimal value 296).