خانه > lang > lsl 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar id vi ko ja ru zh zh_TW eo
قبلی  بعدی  ویرایش  تغییر نام  واگرد  Search  سرپرستی  
مستندات  
اخطار! این صفحه ترجمه نشده است.  مشاهده نسخه انگلیسی 
Lsl
Value = Lsl ( Number , Bit )

Returns Number shifted to the left by Bit bits. The sign is ignored.

The type of Number may be Byte, Short, Integer, or Long.

The valid range of Bit depends on the type of the Number argument.

Type of Number Range of Bit
Byte 0...7
Short 0...15
Integer 0...31
Long 0...63

The datatype of the return value is the datatype of Number.

خطاها

پیامتوضیحات
Type mismatch (6) The datatype of the Number argument is not valid.
Bad argument (20) The Bit argument is out of range.

مثال

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

همچنین مشاهده کنید

Bits Manipulation Functions, عملگرهاي منطقي