Lsr
Value = Lsr ( Number , Bit )
Value = Number Lsr Bit
Поскольку 3.17
Returns
Number shifted to the right by
Bit bits. 0 bits are shifted from the left into the sign bit.
The type of
Number may be
Byte,
Short,
Integer, or
Long.
The valid range of
Bit depends on the type of the
Number argument.
The datatype of the return value is the datatype of Number.
Errors
Examples
PRINT Bin(11, 32), 11
PRINT Bin(Lsr(11, 2), 32), Lsr(11, 2)
00000000000000000000000000001011 11
00000000000000000000000000000010 2
PRINT Bin(-11, 32), -11
PRINT Bin(Lsr(-11, 2), 32), Lsr(-11, 2)
11111111111111111111111111110101 -11
00111111111111111111111111111101 1073741821
See also