SHR= Operator

Performs a arithmetic right shift on the value of a variable and assigns the result to the same variable.

Syntax

variable SHR= amount

Parts

variable
Required numeric variable.
amount
Required integer expression specifying the number of bits to shift.

Remarks

The following two statements are functionally equivalent.

variable SHR= amount
variable = variable SHR amount

Examples

Variable

Property

Listing 2
'' Change value of property
#obj.value SHR= 2

See also