SHL Operator

Performs a left shift operation on a bit pattern.

Syntax

pattern SHL amount

Parts

pattern
Required integer expression
amount
Required integer expression

Remarks

If pattern is a signed data type — Tiny, Short, Integer, Int, Long, or Huge — an arithmetic left shift is performed. An arithmetic shift is ...

If pattern is an unsigned data type — Byte, UShort, UInteger, UInt, ULong, or UHuge — a logical left shift is performed. A logical shift is ...

Examples

Listing 1
pat = 42
R1 = pat SHL 0
R2 = pat SHL 1
R3 = pat SHL 8
R4 = pat SHL -1
After execution
variablevalue
R1?
R2?
R3?
R4?

See also