Difference between revisions of "Addition"
(→Binary Addition) |
(→Binary Addition) |
||
Line 4: | Line 4: | ||
There are for possibilities when adding binary numbers, these possibilities are: | There are for possibilities when adding binary numbers, these possibilities are: | ||
− | •a total of 0 (0+0) put down 0 | + | •a total of 0 (0+0) put down 0 |
− | •a total of 1 (1+0, 0+1 or 0+0+carried 1) put down 1 | + | •a total of 1 (1+0, 0+1 or 0+0+carried 1) put down 1 |
− | •a total of 2 (1+1) put down 0, carry 1 | + | •a total of 2 (1+1) put down 0, carry 1 |
− | •a total of 3 (1+1+ carried 1) put down 1, carry 1 | + | •a total of 3 (1+1+ carried 1) put down 1, carry 1 |
For example, solve 6+7 using binary addition: | For example, solve 6+7 using binary addition: | ||
Line 16: | Line 16: | ||
First convert 6 and 7 from denary to binary using your preferred method | First convert 6 and 7 from denary to binary using your preferred method | ||
− | 6 = 4+2+0 = 110 | + | 6 = 4+2+0 = 110 |
− | 7 = 4+2+1 = 111 | + | 7 = 4+2+1 = 111 |
Then add them keeping in mind the 4 possibilities | Then add them keeping in mind the 4 possibilities |
Revision as of 18:51, 14 December 2016
Binary Addition
Binary addition is done similarly to normal addition but instead of a value of 10 being carried, in binary addition a value of 2 is carried to the next column.
There are for possibilities when adding binary numbers, these possibilities are:
•a total of 0 (0+0) put down 0
•a total of 1 (1+0, 0+1 or 0+0+carried 1) put down 1
•a total of 2 (1+1) put down 0, carry 1
•a total of 3 (1+1+ carried 1) put down 1, carry 1
For example, solve 6+7 using binary addition:
First convert 6 and 7 from denary to binary using your preferred method
6 = 4+2+0 = 110 7 = 4+2+1 = 111
Then add them keeping in mind the 4 possibilities
110 +
111
0+1 = 1 1+1 = 0 carry 1 1+1+ carried 1 = 1 carry 1 1 + 0 = 1
so 110+111 = 1101. Converting this number back to denary gives us an answer of 13.