• Reference Guide


x shr n
The operator performs bit shift down (to the right, to the lower-order bits). The parameter x is the value to be shifted. It is of an integer type (Int, Int8, Int16, Int64, Byte, Word, Dword, Qword). The parameter n specifies the number of bit positions to shift the value x. The right bit shift is equivalent to integer division of n-th power of two. That is: x shr n = x div 2n.
The result type is same as the type of the parameter x.

See Also