Professional Documents
Culture Documents
CH 1 Number System
CH 1 Number System
Chapter 1
Data Representation
The smallest piece of data that can be recognised and used by the computer is
known as the bit or a binary digit. A bit is a single binary value of 1 or 0.
Because the computer is an electronic device which has two states, On and Off,
these two states of the computer are represented by two digits, 1 and 0. Here, 1
represents the electronic state On, and 0 represents the electronic state Off. We
use the decimal number system while counting but a computer uses a binary
system because the binary number system uses only two digits, i.e. bits, to
represent the data.
Number System
A number system is a way to express quantities used for counting, comparing
amounts, performing calculations and for representing values. Some common
number systems are binary, octal, decimal, and hexadecimal. Different number
systems use different digits or symbols to represent numbers. The total number
of digits used in a number system is called its base or radix.
Decimal Number System
The decimal number system is a standard number system for denoting numbers.
It consists of ten digits from 0 to 9. Only these digits can be used to represent
numeric value in decimal number system. Hence, the base of decimal number
system is 10. The decimal number system is the most widely used number
system. The value represented by individual digit depends on the weight and
position of the digit.
The position of the first digit towards left side of the decimal point is 0. The
position of second digit towards left side of the decimal point is 1. Similarly, the
position of the first digit towards right side of decimal point is -1. The position
of second digit towards right side of decimal point is -2, and so on.
The value of a number is determined by multiplying the digits with the weight
of their position and adding the results. This method is known as expansion
method. The right-most digit of the number has the lowest weight. This digit is
called Least Significant Digit (LSD). The left-most digit of a number has the
highest weight. This digit is called Most Significant Digit (MSD). Digit 7 in
the number 724 is the most significant digit and 4 is the least significant digit.
The following table shows positional weight of decimal number (724)10.
Hundreds Tens Units
Weight 102 10 1
100
Real Value of each 7 X 102 2 X 101 4 X 100
digit
Result 700 20 4
Activity 1
Convert 2610 to a binary number
Repeated Division Remainder
2 26
Example: 1010012
Position Digit Position Value Multiplication of Position
value and Position Digit
1 20= 1 1 x 1= 1
0 21= 2 0x2=0
0 22= 4 0x4=0
1 23= 8 1x8=8
0 24= 16 0 x 16 = 0
1 25= 32 1 x 32 = 32
Activity 3
Convert 101110112 to a decimal number
Position Digit Position Value Multiplication of Position
value and Position Digit
X Y X+Y
0 0 0
0 1 1
1 0 1
1 1 10(Carry 1)
Example:
Binary Subtraction
Binary subtraction, binary number of lower value is subtracted from the binary
number of higher value. The following table explains the subtraction of digit Y
from digit X. If Y is greater than X, then 1 is borrowed from the next position.
When the binary digit) borrows 1 from the most significant digit, it becomes 10.
X Y X-Y
0 0 0
0 1 1
1 0 1
1 1 0
Example: