Watch the video and make notes. You can pause the video at any time.
Keywords 🗝️
binary shifting, left shift, right shift, bits, multiply, divide, logical shift, overflow, underflow.
Summary 📝
Left shift: each position shifted left multiplies the value by 2. Example: 110 becomes 1100 (6 → 12), then 11000 (12 → 24).
Right shift: shifting right divides the number by 2, discarding the right‑most bit and adding a 0 at the left. Example: 110 becomes 11 (6 → 3).
Discarding fractions: right shifts may round down because binary cannot store fractions. For instance, shifting 11 (3) gives 1 (not 1.5).
Binary Shifting as a quick way to multiply or divide by powers of two.