Binary Addition, Negative Numbers & Binary Shifts

This lesson covers binary addition, two's complement for negative numbers, and binary shifts. You will see how a logical shift multiplies or divides by powers of two, and how an arithmetic shift preserves the sign bit.

Key terms

Two's complement
A method of representing negative numbers. The most significant bit is the sign bit. -5 in 8 bits is 11111011.
Logical shift
Bits move left or right and the gaps are filled with 0. A left shift by 1 multiplies by 2.
Arithmetic shift
A shift that preserves the sign bit, so negative numbers stay negative.
Overflow
When a result needs more bits than are available to store it.

Part of Information Representation.