Let represent a n-bit number in two’s complement. Its algebraic value,
, is given by,
,
which equals to
,
and, thus, the so-called -complement. Now, the same n-bit number interpreted as a one’s complement number, (
)-complement, results in
.
Therefore,
.
Note how the conversion is possible. Extending the previous equation we obtain
,
or,
.
Interpreting two’s and one’s complement numbers in the framework of digit-set conversions, it is apparent that the MSB of a two’s compl. and a one’s compl. number,, takes values in [-1,0]. Unlike two’s compl., the LSB of a one’s compl. number,
, takes values in [0,1,2].