Radix Complement Number Systems (4)
Two's complement number system (See Table 1.6):
- Positive number :
- N = +(an-2, ..., a0)2 = (0, an-2, ..., a0)2cns,
where .
- Negative number:
- N = (an-1, an-2, ..., a0)2
- -N = [an-1, an-2, ..., a0]2 (two's complement of N),
where .
- Example: Two's complement number system representation of ± (N)2
when (N)2 = (1011001)2 for n = 8:
- +(N)2 = (0, 1011001)2cns
- -(N)2 = [+(N)2]2 = [0, 1011001]2 = (1, 0100111)2cns