Difference between revisions of "MC-Basic:SHR"
m (1 revision) |
(Issue 6435: SHL 32 and SHR 32 return wrong results) |
||
| Line 22: | Line 22: | ||
''<Number>'': - MaxLong to MaxLong | ''<Number>'': - MaxLong to MaxLong | ||
| − | ''<N>: ''0 to | + | ''<N>: ''0 to 31 |
|UNITS= | |UNITS= | ||
Revision as of 12:25, 24 April 2013
SHR (shift right) shifts each bit in <Number> N places to the right. The N rightmost bits are lost.
Syntax
<Number> SHR <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 SHR 3
2