SHR Operator

Performs a right shift operation on a bit pattern.

Syntax

pattern SHR amount

Parts

pattern
Necessary integer expression
amount
Necessary integer expression

Instructions

If pattern is a signed data type – Int8, Int16, Int32, Int, Int64, or Int128 – an arithmetic right shift is performed. An arithmetic shift is ...

If pattern is an unsigned data type – UInt8, UInt16, UInt32, UInt, UInt64, or UInt128 – a logical right shift is performed. A logical shift is ...

Examples

See also