Lsl
Value = Lsl ( Number , Bit )
将
Number左移
Bit个二进制位,并返回结果。符号位参与移动。
Number的类型可以是
Byte、
Short、
Integer或者
Long。
Number的类型决定
Bit的取值范围。
 |
返回值的数据类型与Number相同。
|
错误
Example
PRINT Bin(11, 32), 11
PRINT Bin(Lsl(11, 2), 32), Lsl(11, 2)
PRINT Bin(Lsl(11, 28), 32), Lsl(11, 28)
00000000000000000000000000001011 11
00000000000000000000000000101100 44
10110000000000000000000000000000 -1342177280
PRINT Bin(-11, 32), -11
PRINT Bin(Lsl(-11, 2), 32), Lsl(-11, 2)
PRINT Bin(Lsl(-11, 28), 32), Lsl(-11, 28)
11111111111111111111111111110101 -11
11111111111111111111111111010100 -44
01010000000000000000000000000000 1342177280