BITLSHIFT function

BITLSHIFT(number, shiftAmount) BITLSHIFT(number; shiftAmount)

number

Number or { Number }

The number to be shifted left.

shiftAmount

Number or { Number }

The number of bits to shift the number.

Returns

Number or { Number }

The result.

Shifts a number left by the specified number of bits.

Examples

DEC2BIN(BITLSHIFT(BIN2DEC("00010011"), 2), 8)DEC2BIN(BITLSHIFT(BIN2DEC("00010011"); 2); 8)

Returns "01001100".

BITLSHIFT(19, 2)BITLSHIFT(19; 2)

Returns 76. This example is equivalent to the preceding example, but does not convert the decimal numbers to binary to ease readability.