Answers for "2's complement range of numbers explained"

2

2's complement range of numbers explained

128  =  1000 0000

   reflect  =  0111 1111

   add one  =  1000 0000   ??????

 +128 and - 128 are represented by the same pattern.
 A non-zero integer and its negative can't both be represented by the same pattern.
 So +128 can not be represented in eight bits.
 The maximum positive integer that can be represented in eight bits is 127.
Posted by: Guest on October-29-2020

Code answers related to "2's complement range of numbers explained"

Browse Popular Code Answers by Language