Number System
Number System
✓Electronic circuits are broadly classified into two – Analog and digital
✓In analog circuits, currents and voltages vary in a continuous manner.
✓In digital circuits, the voltages have only two levels – either a high or
a low level.
• The term digital refers to a process that is achieved by using discrete unit.
• In number system there are different symbols (numbers) and each symbol has an absolute value and also has
place value.
• RADIX OR BASE: The radix or base of a number system is defined as the number of different digits which can
occur in each position in the number system.
• Number system:
In general a number in a system having base or radix ‘ r ’ can be written as an an-1 an-2 ………a0 . a -1 a -2 …………a- m
(eg. 1115.52)
This will be interpreted as
Y = an x rn + an-1 x rn-1 + an-2 x rn-2 + ……… + a0 x r0 + a-1 x r -1 + a-2 x r -2 +………. +a -m x r –m
1115.52 = 1 x 103 + 1 x 102 + 1 x101 + 5x 100 + 5 x 10-1+ 2 x 10 -2
where Y = value of the entire number
an = the value of the nth digit
r = radix (base)
• TYPES OF NUMBER SYSTEM:- There are four types of number systems. They are
1. Decimal number system
2. Binary number system
3. Octal number system
4. Hexadecimal number system
Fractions: For fractions the weights of the digit positions are written from right of the binary point and weights
are given as follows.
(0.0110)2= X10
=0x2-1 + 1x2-2+ 1x2-3 + 0x2-4
=0x0.5 + 1x0.25 + 1x0.125 + 0x0.0625
= (0.375)10
• (1011.101) 2=X10
=1x23 + 0x22 + 1x21 + 1x20 + 1x2-1 + 0x2-2 + 1x2-3
=8 + 0 + 2 + 1 + 0.5 + 0 + 0.125
= (11.625)10
• (57.127)8 = (101111.001010111)2
• Binary to octal:
• The given binary number is grouped into a group of 3 bits, starting at the octal point and each group is
converted into its octal equivalent.
• E.g.: (1101101.11101)2 = X8
• (1101101.11101)2 = (155.72)8
• Hexadecimal Number System:
• The hexadecimal number system has a base of 16 (24).
• It has 16 symbols from 0 through 9 and A through F.
• 0 = 0x23 +0x22 + 0x21 + 0x20 =0000
• 1 = 0x23 +0x22 + 0x21 + 1x20 =0001
• ……………………..
• 10 = 1x23 +0x22 + 1x21 + 0x20 =1010 (A)
• 11 = 1x23 +0x22 + 1x21 + 1x20 =1011 (B)……………….
• Binary to hexadecimal:
The binary number is grouped into bits of 4 from the binary point then the corresponding hexadecimal equivalent is
written.
E.g.: (100101110 . 11011) 2 = X16
1110 = 1x23 + 1x22 +1x21 +0x20 = 14 => E
0010 = 0x23 + 0x22 +1x21 +0x20 = 2
0001 = 0x23 + 0x22 +0x21 +1x20 = 1
1101 = 1x23 + 1x22 +0x21 +1x20 = 13 => D
1000 = 1x23 + 0x22 +0x21 +0x20 = 8
• Hexadecimal to binary:
Since the base of hexadecimal number is 16, i.e., the fourth power of 2, each hexadecimal number is converted into
its equivalent binary digit of length four.
E.g.:
(5D. 2A)16 = X2
(2479.859)10 = (9AF.DBE76)16
• Hexadecimal to decimal:
• Each digit of the hexadecimal number is multiplied by its weight and
then added.
✓ Binary, Octal, Hexadecimal to Decimal => Multiply each digit with corresponding base powers
✓ Decimal to Binary, Octal, Hexadecimal => Divide and take reminders using corresponding base