Thursday, November 26, 2015
Home »
» Arithmetic operations in binary system
Arithmetic operations in binary system
• Collecting
Implementation of arithmetic actions is the same for all systems of counting based on the position of the figures. Now we will see the act of collecting system two. Rule collection in this case is:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10
Suppose we want to calculate the amount:
111 (first factor)
+101 (Second factor)
Starting from right to left:
The first step: 1 + 1 = 10, write 0 and carry 1.
Step Two: 1 + 1 (the mbarturi) = 10 (again write 0 and carry 1.
Step three: 1 + 1 + 1 (carried) = 1 bearing 1 (that is placed at the beginning as there have 0 + 0). The result will be 1100
• Rebate
Discounting the two system uses the same rules as the ten system:
0-0 = 0
1-0 = 1
1-1 = 0
0-1 = 1 (borrowing 1 from the previous column)
Example: to realize reduction 11101 - 1011 act as follows:
11101
- 1011
--------
10010
We highlight that we carry 1 of the third pillar to the second pillar, given the fact that there have difference 0-1.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.