previous | start | next

Signed integers - two's complement representation



 b = 37 
 We need to find a binary representation for an a such that

      a + b = 0

In hex:

   b = 0x00000025
   a = ??

Or in binary:

   b = 0000 0000 0000 0000 0000 0000 0010 0101
   a = ??


previous | start | next