Binar Operations(4)
Binar Operations(4)
Binar Operations(4)
1011
Base 10
1 1 1
position: 2 1 0
1 0 1 0
position: 3 2 1 0
0 remainder 1
• Repeated division by 21
two until the quotient
is zero 1 remainder 1
2 3
• What is the binary
representation of 30? 3 remainder 1
2 7
7 remainder 1
2 15
15 remainder 0
2 30
11110
Converting decimal to binary
0 remainder 1
• Repeated division by 21
two until the quotient 1 remainder 0
is zero 2 2
• What is the binary 2 remainder 1
representation of 47? 2 5
5 remainder 1
2 11
11 remainder 1
2 23
23 remainder 1
2 47
101111
Binary addition
0 1 0 1
+ 0 + 0 + 1 + 1
------- ------- ------- -------
0 1 1 10
11 carry 11 carry
101 101 111
+ 10 + 11 + 110
--------- ----------- -----------
111 1000 1101
1 11 carry
10101010111
+ 110000110
------------------------
11011011101
Problems
• Nov 22 1:00-3:00 pm
s