Functions
BITLSHIFT
Left-shift an integer by a number of bits
Try it
When to use it
When should I use BITLSHIFT?
Use BITLSHIFT to multiply an integer by a power of two by shifting its bits left, which is the standard technique for fast power-of-two scaling in bit manipulation.
Used in
Syntax
BITLSHIFT(number, shift_amount)Examples
=BITLSHIFT(2,2) // => 8
=BITLSHIFT(1,4) // => 16
=BITLSHIFT(9,2) // => 36