BitwiseShiftRight

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Operand> shifted right by <Shift> bitwise
Associationscom.livecode.bitwise
Summary

Shifts the bits of Operand right.

Parameters
NameTypeDescription
Operand

An expression which evaluates to an integer.

Shift

An expression which evaluates to an integer.

Example
variable tVar
put 7 shifted right by 2 bitwise into tVar -- tVar contains 1
Values
NameTypeDescription
return

The result of bit-shifting Operand right by Shift places.

Description

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

Tagsbitwise operations