ArcBasicDocs

Shr

Shifts bits right.

a Shr b

Parameters

None.

Description

Shifts a whole number's bits right, filling in with 0 from the top: each place halves a positive number, so 16 Shr 2 is 4. Negative numbers become large positive ones; use Sar to keep the sign.

See also