Save
OCR Computer Science
Binary Logical Shifts
Save
Share
Learn
Content
Leaderboard
Learn
Created by
zara k
Visit profile
Cards (7)
Binary shift
Moving
bits left to
right
Binary shift operators
Often used in programming
Filling
gaps
with
zeros
when shifting right
Logical shift
The most basic and simple type of
binary shift
Applying a binary shift
1. Move bits along to the left or right
2. Fill
gaps
with zeros
Shifting left
Multiplies the number by
2
each time
Shifting right
Divides the number by
2
each time (with loss of
fractional
part for odd numbers)
Shifting out of allocated
memory space
results in data loss (
overflow error
)