In: Advanced Math
Example
Explanation
• The original number was 101 in binary which is equivalent to 5 in
decimal.
• The answer after shifting to the right is 2 in decimal.
• That means by shifting one digit to the right the binary number
gets divided by 2 (5/2 = 2 in binary)
Shifting to the Left
• Shifting a binary number to the left is equivalent to multiplying
it.
• If you shift once to the left , you multiply the binary number by
2
• If you shift twice to the left, you multiply the number by
4
How to Shift to the Left
Example: The number is 1 0 1
INSERT a ZERO in the Least Significant Bit (LSB) 1 0 1 1 0 1 0
LSB
Example Explanation
• The original number was 101 in binary which is equivalent to 5 in
decimal.
• The answer after shifting to the left is 10 in decimal.
• That means by shifting one digit to the left the binary number
gets multiplied by 2 (5*2=10)
Solve: 1. (110)2 x (2)10 = ( )2
2. (1011)2 x (4)10 = ( )2
Shift the following numbers twice to the left:
3. (111)2= ( )2
4. (1010)2= ( )2
Solve: 5. (110)2 / (2)10 = ( )2
6. (1011)2 / (4)10 = ( )2
Shift the following numbers twice to the right:
7. (111)2= ( )2
8. (1010)2= ( )2
please give me the full explanation for the answer