shift_right
Performs a bit-wise right shift.
shift_right(lhs:number, rhs:number) -> number
Description
Section titled “Description”The shift_right
function performs a bit-wise right shift of lhs
by rhs
bit
positions. Each right shift divides the number by 2, truncating any fractional
part.
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 right.
Examples
Section titled “Examples”Shift bits to the right
Section titled “Shift bits to the right”from {x: shift_right(20, 2)}
{x: 5}