Decimal to binary, binary to decimal
Answers
Answered by
18
1. Decimal to binary : example. 62.
First divide the number by 2 and save the remainder as the units digit. Divide the quotient by 2 and save the remainder as the next digit of higher order. Continue like this until the quotient become 0.
62 /2 ... remainder : 0
31/2 remainder : 1
15/2 remainder : 1
7/2 remainder : 1
3 /2 remainder : 1
1/2 remainder : 1
answer : for 62: 0011 1110
2. Binary to decimal conversion :
Let the number be as follows: a,b,c,d,e,f,g,h are either 1 or 0.
a b c d d e f g h
decimal value =
[tex] a*2^7+b*2^6+c*2^5+d*2^4+e*2^3+f*2^2+g * 2^1 + h * 2^0 [/tex]
First divide the number by 2 and save the remainder as the units digit. Divide the quotient by 2 and save the remainder as the next digit of higher order. Continue like this until the quotient become 0.
62 /2 ... remainder : 0
31/2 remainder : 1
15/2 remainder : 1
7/2 remainder : 1
3 /2 remainder : 1
1/2 remainder : 1
answer : for 62: 0011 1110
2. Binary to decimal conversion :
Let the number be as follows: a,b,c,d,e,f,g,h are either 1 or 0.
a b c d d e f g h
decimal value =
[tex] a*2^7+b*2^6+c*2^5+d*2^4+e*2^3+f*2^2+g * 2^1 + h * 2^0 [/tex]
vaishu12:
i need ur help sir
Answered by
3
Answer:
62 in binary
111110
Similar questions