CMD + K

Kapittel 5 · Digital elektronikkbinary numbers

Two's Complement: How Computers Carry a Minus Sign

0:51Fortellerstemme
0:00 / 0:00

Two's complement signed integers — flip every bit (one's complement) and add one to negate. The MSB becomes a sign bit, addition stays exactly the same as for unsigned integers, and a 4-bit register covers −8 to +7.

two's complementsigned integerbinarysign bitnegationaddition