CHP 1 C.S Number System and Conversion
CHP 1 C.S Number System and Conversion
In digital systems, instructions are given through electric signals; variation is done by
varying the voltage of the signal. Having 10 different voltages to implement decimal
number system in digital equipment is difficult. So, many number systems that are
easier to implement digitally have been developed. Let’s look at them in detail.
And decimal equivalent of this number is sum of product of each digit with its
positional value.
110102 = 1×24 + 1×23 + 0×22 + 1×21 + 0×20
= 16 + 8 + 0 + 2 + 0
= 2610
Computer memory is measured in terms of how many bits it can store. Here is a chart
for memory capacity conversion.
Decimal equivalent of any octal number is sum of product of each digit with its
positional value.
7268 = 7×82 + 2×81 + 6×80
= 448 + 16 + 6
= 47010
Hexadecimal Number System
Octal number system has 16 symbols – 0 to 9 and A to F where A is equal to 10, B
is equal to 11 and so on till F. Hexadecimal number system is also a positional value
system with where each digit has its value expressed in powers of 16, as shown here
Decimal equivalent of any hexadecimal number is sum of product of each digit with
its positional value.
27FB16 = 2×163 + 7×162 + 15×161 + 10×160
= 8192 + 1792 + 240 +10
= 1023410
Number System Relationship
The following table depicts the relationship between decimal, binary, octal and
hexadecimal number systems.
0 0 0 0000
1 1 1 0001
2 2 2 0010
3 3 3 0011
4 4 4 0100
5 5 5 0101
6 6 6 0110
7 7 7 0111
8 8 10 1000
9 9 11 1001
A 10 12 1010
B 11 13 1011
C 12 14 1100
D 13 15 1101
E 14 16 1110
F 15 17 1111
ASCII
Besides numerical data, computer must be able to handle alphabets, punctuation
marks, mathematical operators, special symbols, etc. that form the complete
character set of English language. The complete set of characters or symbols are
called alphanumeric codes. The complete alphanumeric code typically includes −
Unicode
Unicode is an international coding system designed to be used with different
language scripts. Each character or symbol is assigned a unique numeric value,
largely within the framework of ASCII. Earlier, each script had its own encoding
system, which could conflict with each other.
In contrast, this is what Unicode officially aims to do − Unicode provides a unique
number for every character, no matter what the platform, no matter what the
program, no matter what the language.
Digital Number System
A digital system can understand positional number system only where there are a
few symbols called digits and these symbols represent different values depending
on the position they occupy in the number.
A value of each digit in a number can be determined using
• The digit
• The position of the digit in the number
• The base of the number system (where base is defined as the total
number of digits available in the number system).
Step 2 19FDE16 ((1 × 164) + (9 × 163) + (15 × 162) + (13 × 161) + (14 × 160))10
There are many methods or techniques which can be used to convert numbers from
one base to another. We'll demonstrate here the following −
Example −
Decimal Number: 2910
Calculating Binary Equivalent −
Step 1 29 / 2 14 1
Step 2 14 / 2 7 0
Step 3 7/2 3 1
Step 4 3/2 1 1
Step 5 1/2 0 1
As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse
order so that the first remainder becomes the Least Significant Digit (LSD) and the
last remainder becomes the Most Significant Digit (MSD).
Decimal Number − 2910 = Binary Number − 111012.
Step 1 21 / 2 10 1
Step 2 10 / 2 5 0
Step 3 5/2 2 1
Step 4 2/2 1 0
Step 5 1/2 0 1
Step 2 101012 28 58