The two's complement code is well described, see for example:

http://en.wikipedia.org/wiki/Two's_complement

But it is interesting to show the basic idea behind this clever "trick".

More Cyril Mechkov's questions See All
Similar questions and discussions