MC-Basic:SHL

From SoftMC-Wiki
Revision as of 12:25, 24 April 2013 by Rasty (talk | contribs) (Issue 6435: SHL 32 and SHR 32 return wrong results)
Jump to: navigation, search

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

Versions 3.6.20 and higher

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

See Also