Data Representation
(cont.)
ä Example
ä Can represent long binary values using shorter hex
notation
ä 1011 0110 0010 1101 16 digit binary value (base 2)
ä B       6       2       D        4 digit hex value (base 16)
ä How can we describe abstract information
relevant to a system’s objectives using binary
values?
ä Examples: integers, characters, real numbers,
colours, dates, graphics....
ä Must encode information into binary values
ä Standard schemes often used, but programmers
must sometimes invent their own schemes
ä Standard formats for data encoding
ä Unsigned integers (counting integers), signed
integers, real numbers, characters