Shift Left Calculator





Formula

To calculate the Shift Left result (SL):

\[ SL = N \ll S \]

Where:

What is a Shift Left Operation?

The shift left operation involves shifting the bits of a number to the left by a specified number of positions. This operation effectively multiplies the number by 2 raised to the power of the number of positions shifted. For example, shifting the number 3 (which is 011 in binary) left by 2 positions results in 12 (which is 1100 in binary), as 3 * 2^2 = 12.

Example Calculation

Let's assume the following values:

Step 1: Use the shift left formula:

\[ SL = 5 \ll 3 = 5 \times 2^3 = 5 \times 8 = 40 \]

The Shift Left Result is 40.