News for hackers. Stuff that matters.
Re:Finally Getting Two's Complement by hanche on Saturday June 24, 2023 @01:20PM (#36460671)
> 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.

There are no comments on this comment yet.