1,885
edits
Changes
BCD
,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…'
[[Category:Computer Architecture]]
''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 is represented in a 32-bit value as:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ''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 is 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, which is the value 296).
''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 is represented in a 32-bit value as:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ''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 is 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, which is the value 296).