Difference between revisions of "MC-Basic:SHL"
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= <''Number''> SHL <''N''> |AVAILABILITY= Versions 3.6.20 and higher |DESCRIPTION= SHL (shift left) shifts each bit in <Number> N places to the…') |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:SHL}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 7: | Line 8: | ||
|AVAILABILITY= | |AVAILABILITY= | ||
− | + | Since Version 3.6.20 | |
|DESCRIPTION= | |DESCRIPTION= | ||
Line 22: | Line 23: | ||
''<Number>'': - MaxLong to MaxLong | ''<Number>'': - MaxLong to MaxLong | ||
− | ''<N>: ''0 to | + | ''<N>: ''0 to 31 |
|UNITS= | |UNITS= | ||
Line 42: | Line 43: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:SHR|SHR]] |
}} | }} |
Latest revision as of 05:40, 28 April 2017
Language: | English • 中文(简体) |
---|
SHL (shift left) shifts each bit in <Number> N places to the left. N zeros are shifted into the N rightmost positions.
Syntax
<Number> SHL <N>
Availability
Since Version 3.6.20
Type
<returnvalue>:Long
<Number>:Long
<N>: Long
Range
<Number>: - MaxLong to MaxLong
<N>: 0 to 31
Scope
Configuration, Task or Terminal
Examples
-->? 16 SHL 3
128