MHB Two's Complement Binary Addition

  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Addition Binary
AI Thread Summary
The discussion revolves around a question about binary addition and the confusion surrounding specific calculations. The user initially presents binary addition examples but struggles to understand why certain results do not align with expectations. Clarification is sought, leading to a suggestion that the issue may relate to "twos complement" notation. A moderator emphasizes the importance of not editing or deleting posts after receiving help, as it undermines the thread's value and can lead to misunderstandings. This policy is reinforced with a warning about potential infractions for violating it. The user acknowledges the rule and expresses that they resolved their issue independently, while also critiquing a previous response for lack of assistance. The discussion highlights the necessity of clear communication in forums to ensure effective help and maintain the integrity of shared knowledge.
shamieh
Messages
538
Reaction score
0
(Envy)

I understand


1 0 1 0
+1 1 0 1
_________

=0 0 0

1 0 1 0
1 1 0 1
________
0 1 1 1

which becomes 1000

BUT, how does

1 0 1 0
+0 0 1 0
_________

not become
1 0 1 0

1 0 1 0
+ 0 0 1 0
___________
?
 
Last edited by a moderator:
Technology news on Phys.org
Re: Addition

We need more information. My first guess was that this was binary addition, but then (1010)+ (1101)= 10111 and (1010)+ (0010)= 1100. Is this a "twos complement" notation?
 
Re: Addition

Solved
 
Last edited:
Re: Addition

shamieh said:
Solved

Please DO NOT remove content from a post after help has been given. This devalues a topic, and voids the time given by the people trying to help.

This is prohibited by MHB rule #7:

Do not edit or delete questions after getting help. When a user edits or deletes a question after getting help, the context of the help is subverted and the thread becomes difficult for other members to follow. Moderators will close threads vandalised in this way, restore the deleted question, and the infract the offending member. The material posted on MHB is a body of knowledge that is a valuable resource for everyone. It is unacceptable to vandalize this resource. Note that a member who deletes a question after getting help casts suspicion of cheating upon themselves. Be careful what you post. Once you post a question or information, it will remain viewable to all members of the public - this includes all staff and students of the institute at which you may study - and may show up on search engines such as Google. It is good etiquette, if you mark your thread as [SOLVED], to post your solution so that others searching MHB will be able to see the solution, and not waste their search time.

I am using discretion here to not lock the topic nor issue an infraction, as I feel you were simply not aware of this policy, nor are you trying to cheat.
 
Re: Addition

Lol HallsofIvy provided no help whatsoever. He was just asking me what I was actually asking. That's why i put solved. I figured out the problem by myself. But I will take note of this rule and adhere to it for the future.

-Sham
 
Re: Addition

shamieh said:
...HallsofIvy provided no help whatsoever. He was just asking me what I was actually asking. That's why i put solved. I figured out the problem by myself. But I will take note of this rule and adhere to it for the future.

-Sham

When a question is unclear, then a good helper will ask for clarification...and this is actually an attempt or effort made to help, because before someone can offer good help, they must understand exactly what is being asked. HallsofIvy has a lot of experience giving help on math forums and so he knows it is better to get clarification than to try to give help based on assumption and interpretation. This can lead to wasted time and effort...something I learned the hard way. :D

It also help make MHB a more informative place, since future readers of the topic will also have no doubt about what is being discussed.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top