Skip to main content

BitwiseShiftRight

Type

operator

Summary

Shifts the bits of Operand right.

Syntax

<Operand> shifted right by <Shift> bitwise

Description

Shifts the bits of Operand right. Shifting the bits of Operand right by x is equivalent to dividing by 2^x (rounding down)

Parameters

NameTypeDescription

Operand

An expression which evaluates to an integer.

Shift

An expression which evaluates to an integer.

Examples

variable tVar
put 7 shifted right by 2 bitwise into tVar -- tVar contains 1
Thank you for your feedback!

Was this page helpful?