Curry
  • Curry
Two's complement question.
Mathematics
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
dan815
  • dan815
hi, so instead of just giving you the trick to 2s compliment, do you understand how or why the 2s compliment is constructed?
Curry
  • Curry
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?
Curry
  • Curry
I got 9 for both.

Looking for something else?

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

More answers

Curry
  • Curry
is that right?
Curry
  • Curry
well 131 can be represented with just 8, but wouldn't the first number represent negative and postive?
anonymous
  • anonymous
for twos compliment notation, generally you add a single bit, but there is a special exception
Curry
  • Curry
or do we not need to worry about signed magnitude arch?
anonymous
  • anonymous
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\).
anonymous
  • anonymous
So 8 bits will support -128 to 127
Curry
  • Curry
wait why is 10, -2?
Curry
  • Curry
do we just subtract 1 and flip the bits?
anonymous
  • anonymous
If you add \(1+-2\), we have \(01 + 10 = 11\) which is \(-1\).
anonymous
  • anonymous
It wraps around so that addition will still work.

Looking for something else?

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