Please enable JavaScript.
Coggle requires JavaScript to display documents.
Binary Arithmetic - Coggle Diagram
Binary Arithmetic
-
Shifting Binary Numbers
A binary number can easily be doubled or halved by moving all of the bits one place to the left or right. This is called a binary shift.
-
-
-
-
-
-
Note that any empty spaces are filled with a zero, and any zeros that "fall off the edge" are ignored.
If a 1 is shifted past the end of a bit pattern then this is called an overflow (left) or underflow (right) and would cause a computer error just like in binary addition.
Shifting a binary number two places to the left would actually multiply it by 4, and three places to the left would multiply it by 8. Can you work out why?