Binary Left & Right Shift Operations
Perform bit shifting operations on binary numbers. Calculate left shifts (multiplication by powers of 2) and right shifts (division by powers of 2) with detailed results.
Enter any positive or negative integer
Enter the number of bit positions to shift (0-31)
Common bit shift operations with detailed explanations
Multiply by 4 using left shift by 2 positions
Number: 5 (Decimal)
Shift: Left Shift (<<) by 2
Divide by 8 using logical right shift by 3 positions
Number: 40 (Decimal)
Shift: Right Shift Logical (>>>) by 3
Arithmetic right shift preserving sign bit
Number: -16 (Decimal)
Shift: Right Shift Arithmetic (>>) by 2
Left shift operation on binary input
Number: 1010 (Binary)
Shift: Left Shift (<<) by 1