CONVERSION INTO BINARY FROM DECIMAL, HEXA, OCTAL NUMBERS
HEY I AM GOING TO SHOW SOME IDEAS ABOUT BINARY CONVERSION
1. DECIMAL TO BINARY.
LET US TAKE EXAMPLE:- (a) 5 IN DECIMAL (in decimal digits <=9).
Step1. Devide 5 from 2 then we get 2 as remainder and 1 as quot.
Step2. Devide 2 (i.e remainder of above) from 2 then we get 1 as remainder and 0 as quot.
Step3. Now we get 1 which not divisible by 2. Here we stop.
If we see in quotient portion from above we get 101.
ans.:- we write quot. right to left. i.e. 101 which is binary of decimal 5.
2. OCTAL TO BINARY.
(b) 523 IN OCTAL FORM (in octal digit <= 7).
Step1. Convert 3 into binary i.e. = 011 (always write binary in group of three ).
Step2. Convert 2 into binary i.e. = 010 (always write binary in group of three ).
Step3. Convert 5 into binary i.e. = 101 (always write binary in group of three ).
Step4. Rewrite all above in serial way i.e (step3step2step1)
101010011.
ans.:- we write 101010011 in binary.
3. HEXA TO BINARY.
(C) 9A2 IN HEXA FORM (in hexa digits <=15 (10=A, 11=B, 12=C, 13=D, 14=E, 15=F))
Step1. Convert 2 into binary i.e. = 0010 (always write binary in group of four ).
Step2. Convert A into binary i.e. = 1010 (always write binary in group of four ).
Step3. Convert 9 into binary i.e. = 1001 (always write binary in group of four ).
Step4. Rewrite all above in serial way i.e (step3step2step1)
100110100010.
ans.:- we write 100110100010 in binary.
THANK YOU FOR VISIT.
FOR ADD, SUB etc. GO THROUGH MY BLOG
WHICH IS UNDER PROCESS
Comments
Post a Comment