Instantly perform bit shift operations on binary or decimal numbers. Understand left shift (<<) and right shift (>>) for efficient data manipulation, bitwise calculations, and low-level programming. Simplify complex binary operations with our free online tool.
Formula:
The Bit Shift Calculator performs fundamental bitwise operations on a given number.
- Left Shift (
N << P): Shifts the bits of number N to the left by P positions. This operation is equivalent to multiplying N by 2P. New bits on the right are filled with zeros. - Right Shift (
N >> P): Shifts the bits of number N to the right by P positions. This operation is equivalent to integer division of N by 2P. For positive numbers, new bits on the left are filled with zeros.
Where:
- N = The input number (decimal or binary)
- P = The number of bit positions to shift