Professional Documents
Culture Documents
Information Representation
Information Representation
Data Representation
o A base: the number of digits that a number system can use to represent numbers
o Place value for each digit: digits in certain positions have a specific value
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0
o Only certain digits are converted to BCD, because particular digits represent a digit
greater than 9.
Concatenate the 3 nibbles (4-bit group) to produce BCD: 0100 0010 1001
Practical applications
o A string of digits on any electronic device displaying numbers (eg. Calculators)
Two’s Complement
o We can represent a negative number in binary by making the most significant bit
(MSB) a sign bit, which indicates whether the number is positive or negative.
Find the binary equivalent of the denary number (ignoring the -ve sign) | 42 = 101010
Add extra 0 bits before the MSB, to format binary number to 8 bits | 00101010
o Add 1 | 00101010
o Practical applications:
Character Sets
o A character set generally includes upper & lower case letters, number digits,
punctuation marks and other characters.
o Character sets use different binary representations for each character via character
encoding