Simple Binary addition

  • Thread starter ee1215
  • Start date
  • #1
29
0

Homework Statement



010110000000000
011001000000000
001100010000000
100100001000000
110100000000100
111100000000001
+
-------------------

Homework Equations





The Attempt at a Solution


The answer I get is 1010111011000101
but I have used matlab and the first four digits are backwards on my answer per matlab. I am confused on how they get that when carrying the 1 starting with the 12th row from the right.
 

Answers and Replies

  • #2
34,825
6,568

Homework Statement



010110000000000
011001000000000
001100010000000
100100001000000
110100000000100
111100000000001
+
-------------------

Homework Equations





The Attempt at a Solution


The answer I get is 1010111011000101
but I have used matlab and the first four digits are backwards on my answer per matlab. I am confused on how they get that when carrying the 1 starting with the 12th row from the right.

Rows are horizontal. Columns are vertical, just like the columns in a building. Starting from the 4th column from the left, you're adding 1 + 1 + 1 + 1 + 1 = 5 = 1012. You have a 0 at that position, and you should have a 1, and you need to carry 4 (or 1002).
 

Related Threads on Simple Binary addition

  • Last Post
Replies
2
Views
433
  • Last Post
Replies
14
Views
2K
Replies
2
Views
818
Replies
4
Views
14K
Replies
3
Views
373
  • Last Post
Replies
4
Views
5K
Replies
3
Views
1K
  • Last Post
Replies
3
Views
9K
  • Last Post
Replies
6
Views
961
  • Last Post
Replies
2
Views
1K
Top