Professional Documents
Culture Documents
Decimal To Binary:-The method to convert to a decimal number to its binary equivalent is called double dabble method.
The steps to perform the decimal to binary conversion areStep1. Divide the decimal no. successively by 2 and note the reminder each. Step2.The division process is stopped when the quotient is less than 2. Step3. Read the remainder bottom to top to get the binary equivalent of the decimal number.
Hence,
( 27)10 = (11011)2
The steps to convert a binary no. to decimals areStep1. Write the weights for each binary digit string from the right most bits and the first weight (deposition) starts from 0. For fractional parts we writes from left to right and the weight is -1 Step2. Multiple each bit of binary by 2 and use weights as power to the base 2 Step3. Add the multiple product of each bit .The addition of multiple product will be equivalent to decimal number.
1 x 24=16
1 x 23=8
0 x 22=0
1 x 21=2
1 x 20=1
16 + 8 + 0 + 2 + 1 = 27
Decimal to Octal:-The steps to convert Decimal to Octal areStep1. Divide the decimal no. successively by 8 and note the remainder. Step2. The division process is stop when the quotient is less than 8. Step3. Read the remainder bottom to top to get the octal equivalent of the decimal number.
8 8
25 3 0
1 3
Decimal to Hexadecimal:-Steps to convert decimal to Hexadecimal are:Step1. Divide the decimal no. successively by 16 and note down the remainder each. Step2. The division process is stop when the quotient is less than 16. Step3. Read the remainder bottom to top to get the Hexadecimal no. equivalent to Decimal.
Note
7=7
8=8
9=9
X 2
6 X2 2
Compliments of a number
9s compliments:- To obtain 9s compliment (reverse) of a decimal number ,we subtract the decimal number by the largest decimal number of same digits which to be found 9s compliment. 10s compliment:- To obtain 10s compliment we add 1 in 9s compliment of a number.
Q. Obtain 9s and 10s compliment of 123. Soln:123 is of 3 digits so the largest no. of 3 digits = 999 Now, 9s compliment = 999 123 = 876 10s compliment = 876 + 1 = 877 1s compliment:- The method of obtaining 1s compliment is similar to 9s compliment but we subtract the binary no. by a largest binary no of same digits. 2s compliment:- To obtain 2s compliment just we add 1 in 1s compliment.
Note:-
Binary Airthematic
Addition:Carry Augend Addened Sum 0 0 0 0 0 0 1 1 0 1 0 1 1 1 1 0
Q. (10110)2 + (11011)2 =?
1 1 1
Q. (11001)2 (10110) 2 =?
10=2 ,10=2
1 1 0 0 1 1 0 1 1 0 0 0 0 1 1
Q. (101)2 (1010)2=?
Step1. 1 s compliment of Subtrahend 1010 = 0101. Step2. Add the minuend with the 1s compliment of subtrahend. 0 1 0 1 + 0 1 0 1=1 0 1 0 Here there is no any carry is obtained so again find 1s compliment of the Sum. And the Ans. will be in ve. Thus, 1s compliment of the sum = 0101. Ans. = - (0101)2 = - (101)2
Q. (101)2 (1010)2=?
Step1. 2s compliment of Subtrahend 1010 = 0101 + 1 = 0110 Step2. Add the minuend with the 2s compliment of subtrahend. 0 1 0 1 + 0 1 1 0 = 1 0 1 1 (Here there is no carry) So, 2s compliment of the sum = 0100+1 = 0101. Thus, Ans. = - (0101)2 = - (101)2
Q. (1010)2 x (101)2 =?
1 0 1 0 X 1 0 1 1 0 1 0 0 0 0 0 1 0 1 0 1 1 0 0 1 0
Ans. = (110010)2
Q. (1010)2 / (101)2 =?
- : Keep in Your Mind : Binary Decimal 1=1 10=2 11=3 100=4 101=5 110=6 111=7 1000=8 1001=9 1010=10 1011=11 1100=12 1101=13 1110=14 1111=15