1.1NUMBER System
1.1NUMBER System
NUMBER SYSTEM
Visit: http://www.encodersunlimited.com/
Data Representation
◦ Representation = Measurement
◦ Most things in the “Real World” actually exist as a single, continuously varying quantity
Mass, Volume, Speed, Pressure, Temperature
◦ Easy to measure by “representing” it using a different thing that varies in the same way
Eg. Pressure as the height of column of mercury or as voltage produced by a pressure
transducer
◦ These are ANALOG measurements
Digital Representation
◦ Convert ANALOG to DIGITAL measurement by using a scale of units
◦ DIGITAL measurements
◦ In units – a set of symbolic values - digits
◦ Values larger than any symbol in the set use sequence of digits Units,
Tens, Hundreds…
◦ Measured in discrete or whole units
◦ Difficult to measure something that is not a multiple of units in size. Eg
Fractions
Analog vs Digital Data Representation
◦ Analog signal uses a continuous range of values that help you to represent information on the
other hand digital signal uses discrete 0 and 1 to represent information. The analog signal
bandwidth is low while the bandwidth of the digital signal is high.
Why Data Representation?
◦ Computers use digital representation.
◦ Based on a Binary system
(uses on/off states to represent 2 digits).
◦ Many different types of data
– Examples?
◦ ALL data (no matter how complex) must be represented in memory as binary digits ( bits).
Number System and Computers
◦ In early days when there were no means of counting, people use to count with the
help of fingers, stones, sticks, etc.
◦ These methods were not adequate and had many limitations.
◦ Many number system were introduced with the passage of time like:
◦ Decimal Number System
◦ Binary Number System
Octal Number System
Representation: (Number) base
◦ Hexadecimal Number System (123)10
Number Base
Number System and Computers(Contd…)
◦ Computers store all data as binary digits, but we may need to convert this to a number system
we are familiar with.
◦ Computer programs and data are often represented (outside the computer) using octal and
hexadecimal number systems because they are a short hand way of representing binary
numbers.
Number System