Data Types and Data Encoding
Data Types and Data Encoding
ENCODING
• We have already asserted that all digital data
is encoded as a sequence of bits and that
information is associated with the various
patterns that these bits may exhibit.
• This section gives further insight into how
specific types of information are encoded and
describes some of the inner workings of a
computing system.
• We begin by discussing how numbers are
encoded and then give a brief overview of
how colors, pictures, and sound can be
encoded.
Numbers
• Numeral system
• A numeral system is a way of representing
numbers in written form.
• If these markings are interpreted using the
numeral system known as tally marking, they
correspond to the numbers one, two, and
three.
• Under tally marking, a number is represented
by making one tally mark for each unit in the
number.
• You may have used tally marking when
keeping score in a game of tic-tac-toe .
• If these markings are interpreted using the Roman numeral
system, they also correspond to the numbers one, two, and
three.
• While the Roman numeral system has well-defined rules for
representing integer numbers, the system is not widely
used today because it is difficult to understand all of the
rules and to decode larger numbers.
• If these markings are interpreted using the decimal numeral
system, they correspond to the numbers one, eleven, and
one hundred and eleven. (100 ,101 100 ,102 101 100
• ------🡪1, 10+1=11,100+10+1=111