Left Logical Shift Calculator

Written by:
PK

Here is a left logical shift calculator or zero fill left shift calculator. Enter a number to convert to 32 bit binary, plus the number of spaces to shift to the left, and the tool will return the result after the logical shift.

Left Logical Shift Calculator

Using the Left Logical Shift Calculator

To use the left logical shift calculator, enter a number to shift left in the "Number to Shift" field in the tool. Then, in the "Steps" field, enter how many digits to shift the number to the left.

Once happy with the inputs, click the "Calculate Left Logical Shift" button.

The result will show up in the "Shifted Number" field, already left shifted, zero-filled, and converted to integer:

Left logicial shift of 4 2 digits
Zero-filled left shift of 2 digits for the number 4

Left Logical Shift Example

Behind the scenes, the tool is using a 32-bit binary number representation of your input. It then shifts it the number of spaces you'd like to move, adding a '0' to the end of the number.

Let's walk through the screenshotted example a step at a time to see how it works:

4<<2 = 16\\(steps)\\
100\ (4)<<2=\\
1000\ (8)<<1=\\
10000\ (16)

Other Binary Calculator

Try our other binary math calculators:

      

PK

PK started DQYDJ in 2009 to research and discuss finance and investing and help answer financial questions. He's expanded DQYDJ to build visualizations, calculators, and interactive tools.

PK lives in New Hampshire with his wife, kids, and dog.

Don't Quit Your Day Job...

DQYDJ may be compensated by our partners if you make purchases through links. See our disclosures page. As an Amazon Associate we earn from qualifying purchases.
Sign Up For Emails
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram