MHB Addition involving eight-bit 2's complement numbers and indicating overflow.

  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Addition Numbers
AI Thread Summary
The discussion centers on performing arithmetic operations with eight-bit 2's complement numbers, specifically the addition of two binary numbers: 00110110 and 01000101. The result of the addition is 01111011, which is confirmed to be correct. However, the explanation regarding overflow is clarified; while the sum does not result in overflow, the reasoning provided is inaccurate. Overflow occurs when the result exceeds the maximum representable value in 2's complement, which can happen when adding two positive numbers that exceed the limit. The key takeaway is that while the sum is correct and there is no overflow in this case, the rationale for determining overflow needs to be accurately understood.
shamieh
Messages
538
Reaction score
0
Perform the following operations involving eight bit 2's complement numbers and indicate whether arithmetic overflow occurs.

1.
00110110 + 01000101 = 01111011 Overflow: there is none because we are adding to positive numbers.

Did I do this correctly?
 
Technology news on Phys.org
The sum is correct, and there is indeed no overflow, but not because you are adding two positive numbers. When you add 1 to 01111111, there is an overflow.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Back
Top