A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Curry

  • one year ago

Two's complement question.

  • This Question is Closed
  1. dan815
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    hi, so instead of just giving you the trick to 2s compliment, do you understand how or why the 2s compliment is constructed?

  2. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if it's positive, i just keep it the same. and if it's negative, i write the positive number, flip the bits, and add 1 right?

  3. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I got 9 for both.

  4. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    is that right?

  5. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    well 131 can be represented with just 8, but wouldn't the first number represent negative and postive?

  6. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    for twos compliment notation, generally you add a single bit, but there is a special exception

  7. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    or do we not need to worry about signed magnitude arch?

  8. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    For example, for two bits we have: 00 = 0 01 = 1 10 = -2 11 = -1 Our range is -2 to 1, which is given by \(-2^{n-1}\) to \(2^{n-1}-1\).

  9. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    So 8 bits will support -128 to 127

  10. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    wait why is 10, -2?

  11. Curry
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    do we just subtract 1 and flip the bits?

  12. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    If you add \(1+-2\), we have \(01 + 10 = 11\) which is \(-1\).

  13. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    It wraps around so that addition will still work.

  14. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.