Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

liliy Group Title

how do u represent negative numbers in binary?

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. MaryMarvel Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    it depends on how you want to do it... For example you can write -0000 0001 which is -1

    • 2 years ago
  2. MaryMarvel Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    or you can use two's complement

    • 2 years ago
  3. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Two's complement or a sign flag.

    • 2 years ago
  4. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    normally the left most bit represents positive or negative, never have seen a -00001 before.

    • 2 years ago
  5. KimoKiko Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    If you're asking about how computers represent negative numbers in binary, then it's, as @MaryMarvel stated, by using the two's complement notation. Two's Complement Notation is used to represent signed binary numbers. The Two's Complement of a number is all its bits reversed, plus one. (i.e: The Two's Complement of A is NOT A + 1) So -50 for example is represented as follows: 11001110 The Left-most bit is the sign bit, when it is 1 the number is negative. So how to convert 11001110 to its decimal form?! It's done as follows: 1st) Get the two's complement of it, that is: 00110001 + 1 = 00110010 2nd) if you convert 00110010 to its decimal form you'll get 50 and since the number is negative then the answer is -50 hope you got it

    • 2 years ago
  6. liliy Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    you said -50 is : 11001110, how do you know that that number in binary isnt realy 206? how do u know that its a negative number... @KimoKiko

    • 2 years ago
  7. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    http://en.wikipedia.org/wiki/Signed_number_representations

    • 2 years ago
  8. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    It all depends on if you are using signed or unsigned bits.

    • 2 years ago
  9. eSpeX Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    The -50 example is using twos complement: http://en.wikipedia.org/wiki/Two%27s_complement You know the convention before you work it, signed bits or twos complement.

    • 2 years ago
  10. liliy Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    oh, u know if ur dealing with a neg or pos number... its not just like , u see 1's an 0's and u need to find the value... bec that could be hard., right?

    • 2 years ago
  11. KonradZuse Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You should be told if you're dealing with an unsigned or signed number. If signed then it will be half of an unsigned. I.E., a byte is 256 bits, so a signed byte would be -128 to 127. An unsigned would be 0-255.

    • 2 years ago
    • Attachments:

See more questions >>>

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.