Unit 2-Number System
Unit 2-Number System
The digit
Its position in the number
The base of the number system
The base or radix of a number system can be referred as the total number of
different symbols which can be used in a particular number system. Radix means
“root” in Latin.Base equals to 4 implies there are 4 different symbols in that
number system. Similarly, base equals to “x” implies there are “x” different
symbols in that number system.
Each binary digit is also called a bit (binary digit). Binary number system is also
positional value system, where each digit has a value expressed in powers of 2.
In any binary number, the rightmost digit is called least significant bit (LSB) and
leftmost digit is called most significant bit (MSB).
Bit : The term ‘bit’ is a combination of the words ‘binary’ and ‘digit’. It is the
smallest unit of memory or instruction that can be stored on a computer. A bit is
either a 0 or a 1 and bits (‘binary’ and ‘digits’) are series of 0s and 1s.
Byte : A group of 8 bits is a byte. Combination of bytes comes with various names
like the Kilobyte, Megabyte and so on.
One kilobyte (KB) is a collection of 1000 bytes. 1024 kilobytes form a Megabyte
(MB) and so on.
value.
(276)8 = 2 x 82 + 7 x 81 + 6 x 80
= 2 x 64 + 7 x 8 + 6 x 1
=128 + 56 + 6
= (190)10
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
. Hexadecimal number system is also a positional value system with where each digit
has its value expressed in powers of 16.
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
Base Conversions
The different number base conversion in number system are:
All the fractional digits to the right of the binary point have respective weightings
which are negative powers of two. So for the fractional binary numbers to the right
of the binary point, the weight of each digit becomes negative giving: 2-1, 2-2, 2-3
and so on as shown.
Binary Number . 1 0 1
Significant Digit Zero Point - - -
Place Value 2-1 2-2 2-3
1 x 1/2 0x¼ 1 x 1/8 1
Conversion 1 x (0.5) 0 x (0.25) x (0.125)
Decimal Equivalent 0.5 0 0.125
Decimal Sum 0.5+0+0.125
Decimal Number 0.625
Separate the digits of the given number in to groups from right to left each
3
containing 3(2 =8) digits.
Find the equivalent octal number for each group.
Write all group’s octal numbers together to get the equivalent octal number
for a given binary number.
BinaryNumber 1 1 1 1 1 0 0 1 1 0 0 1
Group of 3 digits 111 110 011 001
Equivalent Octal Number 7 6 3 1
Converted Octal Number 7631
Binary Number . 1 0 0 1 1 1
Group of 3 digits Decimal Point 100 111
Equivalent Octal
4 7
Number
Converted Octal
Number 47
Binary
Number 1 0 0 1 . 0 1
Group of 3 Zero
digit 001 001 Point 010
Equivalent
Octal
Number 1 1 . 2
Converted
Octal
Number 11.2
Separate the digits of the given number in to groups from right to left each
4
containing 4(2 =16) digits.
Find the equivalent hexadecimal number for each group.
Write all group’s hexadecimal numbers together to get the equivalent
hexadecimal number for a given binary number.
1. Convert 111110011001(2) to Hexadecimal number system.
Binary Number 1 1 1 1 1 0 0 1 1 0 0 1
Group of 4 digits 1111 1001 1001
Equivalent Hexadecimal
F (15) 9 9
Number
Converted Hexadecimal
F99
Number
Binary Number . 1 0 0 1 1 1
Decimal
1001 1100
Group of 4 digits Point
Equivalent Hexadecimal
9 B
Number
Converted Hexadecimal . 9B
Binary Number 1 0 0 1 . 0 1
Zero
Group of 4 digits 1001 Point 0100
Equivalent
Hexadecimal Number 9 . 4
Converted
Hexadecimal Number 9.4
Decimal to other Number Systems
There are three conversions possible for decimal number, i.e., decimal to binary,
decimal to octal, and decimal to hexadecimal.
Step – 2 The remainder which is obtained from step 1 is the least significant bit of
the new binary number.
Step – 3 Divide the quotient which is obtained from the step 2 and the remainder
obtained from this is the second least significant bit of the binary number.
Step – 4 Repeat the process until the quotient remains zero.
Step – 5 The last remainder obtained from the division is the most significant bit of
the binary number.
Arrange the number from most significant bit to the least significant bit (i.e., from
bottom to top).
For fractional decimal numbers, multiply it by 2 and place the carry in the integral
position. The carries when read down produces the equivalent binary fraction as
explained by the example given below.
To convert the given decimal number into the binary number, the same approach is
used, as was done in integer and fractional parts of the number.
Hence the binary equivalent of 25 is 11001(2) and .35 is 01011(2)
Therefore 25.35(10) is 11001.01011(2)