Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Performs a bit-wise left shift.

shift_left(lhs:number, rhs:number) -> number

The shift_left function performs a bit-wise left shift of lhs by rhs bit positions. Each left shift multiplies the number by 2.

The number to be shifted.

The number of bit positions to shift to the left.

from {x: shift_left(5, 2)}
{x: 20}

Last updated: