shift_left
Performs a bit-wise left shift.
shift_left(lhs:number, rhs:number) -> number
Description
Section titled “Description”The shift_left
function performs a bit-wise left shift of lhs
by rhs
bit
positions. Each left shift multiplies the number by 2.
lhs: number
Section titled “lhs: number”The number to be shifted.
rhs: number
Section titled “rhs: number”The number of bit positions to shift to the left.
Examples
Section titled “Examples”Shift bits to the left
Section titled “Shift bits to the left”from {x: shift_left(5, 2)}
{x: 20}