({{, (RefLink[BitShiftLeft, paclet:ref/BitShiftLeft])[n,k] 
shifts the binary bits in the integer n to the left by k places, padding with zeros on the right.}, {, (RefLink[BitShiftLeft, paclet:ref/BitShiftLeft])[n]
shifts one bit to the left.}})

OpenersNotesSection(Spacer1)Details

(RefLink[BitShiftLeft, paclet:ref/BitShiftLeft])[n,k] is equivalent to n2^k.

Negative values of k shift to the right.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Shift 3 places to the left:

BitShiftLeft[32,3]

OpenersExampleSection1(Spacer1)Scope  (2)

(RefLink[BitShiftLeft, paclet:ref/BitShiftLeft]) works with numbers of any size:

BitShiftLeft[2^200-1,7]

(RefLink[BitShiftLeft, paclet:ref/BitShiftLeft]) automatically threads itself over lists:

BitShiftLeft[{1,2,4,16},2]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[BitShiftRight, paclet:ref/BitShiftRight])  ▪  (RefLink[RotateLeft, paclet:ref/RotateLeft])  ▪  (RefLink[BitLength, paclet:ref/BitLength])  ▪  (RefLink[BitGet, paclet:ref/BitGet])  ▪  (RefLink[MantissaExponent, paclet:ref/MantissaExponent])  ▪  (RefLink[CellularAutomaton, paclet:ref/CellularAutomaton])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Integer and Number Theoretic Functions, paclet:tutorial/IntegerAndNumberTheoreticalFunctions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Bitwise Operations, paclet:guide/BitwiseOperations])}, {▪(RefLinkPlain[Boolean Computation, paclet:guide/BooleanComputation])}, {▪(RefLinkPlain[Number Digits, paclet:guide/NumberDigits])}, {▪(RefLinkPlain[Integer Functions, paclet:guide/IntegerFunctions])}})}})