-1
$\begingroup$

So for example, if we were to try and take the 2's complement of -8. Would this be un-representable or would doing the 2's complement result in a positive 8?

1 Answers 1

1

$-8$ when converted to binary gives $11111000$

Flipping the digits give $00000111$

Add $1$ we get $00001000$ which is equal to $8$

  • 0
    Ah that makes much more sense. Thank you.2017-02-21