NUMBER SYSTEM
Since early days people have been using their fingers, sticks and other
things for counting. In 3400BC ancient Egyptians started using special
symbols for writing numbers.
Number system can be classified into two broad categories.
NON-POSITIONAL NUMBER SYSTEM; In this system, every
number is represented by a symbol. This is also known as absolute
number system. An example of this system is Roman number system.
It is very difficult to perform arithmetic operations using this system.
POSITIONAL NUMBER SYSTEM: In this system, value of each
digit in a number is defined not only by the symbol but also by its
position. The positional number system that is currently used is called
decimal number system, it contains ten symbols.
BASE OR RADIX OF SYSTEM: Base or radix tells the number of
symbols used in the system. The radix is indicated by a subscript for
example.
(7592)10 (214)8 (123)16
TYPES OF NUMBER SYSTEM: The number systems used by computers
are as follows.
I. Decimal system
II. Binary number system
III. Octal number system
IV. Hexadecimal number system
DECIMAL NUMBER SYSTEM: The decimal number system uses ten
symbols 0 to 9 each digit in a base 10 number system represents units which
are ten times the units of digits to its rights.
For eg: 9735 can be expressed as 9x1000+7x100+3x10+5.
BINARY NUMBER SYSTEM: The CPU of a computer is made of
millions of switches that can be either in on or off states. The digits 0 and 1
are used to represent these states. Binary system has only two symbols 0 and
1 the value of each digit is determined by a power of 2.
2 36
2 18- 0
2 9- 0
2 4- 1
2 2- 0
2 1- 0
0- 1
MSB
001
1010
1111
0110
1100
5AF.6C = (10110101111.01101100)2
0
0
1
1
0
1
0
1
Example1:
1111
1010
11001
Example2:
1 1. 1 0
1 0. 1 0
110. 0 0
OUTPUT
Sum (s)
Carry(c)
0
1
1
0
15
10
25
3.5
2.5
6.0
0
0
0
1
0
0
1
1
0
1
0
1
OUTPUT
difference(d) borrow(b)
0
1
1
0
0
1
0
0
(10)
Example: 1 1 0 1
1011
0010
13
11
02
magnitude
Eight bit signed number range from -127 to +127.In same application,
number are unsigned. They do not use sign bit. Hence an 8 bit unsigned
number ranges from 0 to 255.
MSB
LSB
Magnitude
48 57 65 90 97 122