> The same works for binary and the two's complement, where it is even easier, because calculating the two's complement is equal to inverting all digits and adding 1.
It’s the same in base 10, if by inverting a digit x you mean replacing it by 9-x.
It’s the same in base 10, if by inverting a digit x you mean replacing it by 9-x.