CLASS 11 CH-1 Number System
CLASS 11 CH-1 Number System
It is a systematic way to represent numbers in different ways. Each number system has its own
Base, that is a number and that number of symbols or digits used.
1. Most Significant Digit (MSD): The digit with most weight is called MSD. MSD is also called
Left Most Digit(LMD)
2. Least Significant Digit (LSD): The digit with least weight is called LSD. LSD is also called
Right Most Digit(RMD)
eg: 106 : Here MSD : 1 and LSD : 6
345.78: Here MSD : 3 and LSD : 8
3. A Binary Digit is also called a bit.
4. The weight of each digit of a number can be represented by the power of its base.
Number conversions:
In general, to convert a decimal number into another number system(binary or octal or
hexadecimal) do the following. Divide the number successively by the base of the number system
do you want to convert and write down the remainders from bottom to top.
To convert a decimal fraction into another number system .multiply the number by the base of the
number system do you want to convert then integer part and fractional part are separated again
multiply the fractional part by the base and do the steps repeatedly until the fractional part
becomes zero. Finally write down the integer part from top to bottom.
Decimal to Binary:
Divide the number by the base 2 successively and write down the remainders from bottom to top.
(0.140625)10 = (0.11)8
Decimal to Hexadecimal:
Divide the number by the base 16 successively and write down the remainders from bottom to top.
Converting a number from any number system into decimal: For this multiply each digit by its
corresponding weight and sum it up.
1 × 8 3 + 0 × 82 + 0 × 81 + 7 × 8 0
= 512 + 0 + 0 + 7
=(519)10
Converting octal fraction to decimal (600.005)8 =()10?
(10100110)2= (246)8
Step II: Next convert this number into hexadecimal equivalent for this do the following.
Step II. Next convert this number into octal equivalent. For this do the following.
So the answer is (A1)16 = (241)8
Data representation:
The data stored in the computer memory is in the form of binary.
Representation of integers
There are three ways to represent integers in computer. They are as follows:
1. SMR:
Normally a number has two parts sign and magnitude, eg: Consider a number+5. Here + is the
sign and 5 is the magnitude. In SMR the most significant Bit (MSB) is used to represent the sign. If
MSB is 0 sign is +ve and MSB is 1 sign is -ve. eg: If a computer has word size is 1 byte then
Here MSB is used for sign then the remaining 7 bits are used to represent magnitude. So we can ,
represent 27 = 128 numbers. But there are negative and positive numbers. So 128 + 128 = 256
number. The numbers are 0 to +127 and 0 to -127. Here zero is repeated. So we can represent
256 – 1 = 255 numbers.
(ii) Find the 1’s complement of +21. Positive numbers are represented by using SMR.
+21 = 00010101 (No need to take the 1’s complement)
A computer with 32 bit word length is used 24 bits for mantissa and the remaining 8 bits used to
store exponent.
Representation of characters:
1. ASCII(American Standard Code for Information Interchange):
It is 7 bits code used to represent alphanumeric and some special characters in computer
memory. It is introduced by U.S. government. Each character in the keyboard has a unique
number.
Eg: ASCII code of ‘a’ is 97, when you press ‘a’ in the keyboard , a signal equivalent to 1100001
(Binary equivalent of 97 is 1100001) is passed to the computer memory. 2 7 = 128, hence we can
represent only 128 characters by using ASCII. It is not enough to represent all the characters of a
standard keyboard.
4. Unicode:
The limitations to store more characters is solved by the introduction of Unicode. It uses 16 bits so
216 = 65536 characters (i.e, world’s all written language characters) can store by using this.
Binary arithmetic:
Binary addition:
The rules for adding two bits
Binary subtraction:
The rules for subtracting a binary digit from another digit.
Step 1: Add 0s to the left of the subtrahend, to make two numbers with same number of bits.
Step 2: Find 1’s complement of subtrahend.
Step 3: Add the complement with minuend.
Step 4: If there is a carry, ignore the carry, the result is positive then add the carry 1 to the result.
eg: Subtract 1101 from 111100 using 1’s complement method.
Step 1: Insert two Os to the left of 1101. Hence the subtrahend is 001101.
Step 2: 1’s complement of 001101 is 110010
Step 3: Add this to the minuend.
Step 4: Ignore the carry the result is positive and add add the carry 1 to 101110
Step 4: Ignore the carry the result is positive. Hence the result is 101111.