Decimal Number System
Decimal Number System
Binary number system can contain two digits 0 and 1. So base of binary
to the value.
1. (1101) 2
2. (1110.011) 2
2. Decimal Number System
1. (1234) 10
2. (55.34) 10
3. Octal Number System
the value.
Examples of octal numbers are:
1. (561) 8
2. (17.54) 8
4. Hexadecimal Number System
from A to F where
A=10
B=11
C=12
D=13
E=14
F=15
This should continue until last quotient is less than 8. The remainders
number.
3 . Decimal to hexadecimal Conversion
step.
This should continue until last quotient is less than 16. The remainders
decimal number.
4. Binary to Decimal Conversion
Example:
5. Octal to Decimal Conversion
Example:
multiplied.
power of 16.
Example:
For example, to get binary equivalent of octal number 127 we can take
following steps:
digits.
should be divided into groups of three digits starting from the right most
numbers.
(101)(011)
number should be divided into groups of four digits starting from the
(0010)(1110)(1011)
Note: zeros are filled at the beginning of left most group of binary digits
Binary Addition
Binary numbers can be added just like normal numbers but in case of
are:
1. 0+0=0
2. 0+1=1
3. 1+0=1
4. 1+1=0 with carry 1
Example 1:
1 + 1 = 10 = 0 with carry 1.
1 +1 +1 = 11
Example 2:
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.
In any binary number, the rightmost digit is called least significant bit (LSB) and
leftmost digit is called most significant bit (MSB).
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
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
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.