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: leftShift by 2
Divide by 8 using logical right shift by 3 positions
Number: 40 (decimal)
Shift: rightShiftLogical by 3
Arithmetic right shift preserving sign bit
Number: -16 (decimal)
Shift: rightShiftArithmetic by 2
Left shift operation on binary input
Number: 1010 (binary)
Shift: leftShift by 1