Solution: Decimal To Binary
Solution: Decimal To Binary
Convert the following decimal numbers into equivalent binary numbers and then convert the binary
answer back into equivalent decimal. Show all the steps of conversions.
• 4789
• -8735
Solution
Convert the following decimal numbers into equivalent binary numbers and then convert the
binary answer back into equivalent decimal. Show all the steps of conversions.
• 4789
Solution Decimal to Binary
212 211 210 29 28 27 26 25 24 23 22 21 20
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
1 0 0 1 0 1 0 1 1 0 1 0 1
4789= (1001010110101)2
B = 8735
-8735= (110001000011111)2
Solution Binary to Decimal to
• -8735
8192+512+16+8+4+2+1=-8735
(110001000011111)2 =-8735
,𝑨⊕𝑫.
.
,,𝑩.+,𝑪.. ,𝑨⊕𝑫. ,𝑨+𝑩.
A B C D 𝑨⊕𝑫 𝑨+𝑩 ,,𝑩.+,𝑪.. ,𝑩+𝑪+𝑫. ⊕ . .
,𝑩+𝑪+𝑫. ,𝑨+𝑩. (,,𝑩.+,𝑪..
⊕
,𝑩+𝑪+𝑫.)
0 0 0 0 0 0 1 0 1 0 0
0 0 0 1 1 0 1 1 0 0 0
0 0 1 0 0 0 1 1 0 0 0
0 0 1 1 1 0 1 1 0 0 0
0 1 0 0 0 1 1 1 0 0 0
0 1 0 1 1 1 1 1 0 1 0
0 1 1 0 0 1 0 1 1 0 0
0 1 1 1 1 1 0 1 1 1 1
1 0 0 0 1 1 1 0 1 1 1
1 0 0 1 0 1 1 1 0 0 0
1 0 1 0 1 1 1 1 0 1 0
1 0 1 1 0 1 1 1 0 0 0
1 1 0 0 1 1 1 1 0 1 0
1 1 0 1 0 1 1 1 0 0 0
1 1 1 0 1 1 0 1 1 1 1
1 1 1 1 0 1 0 1 1 0 0