Difference between revisions of "MC-Basic:SHR"

From SoftMC-Wiki
Jump to: navigation, search
(Issue 6435: SHL 32 and SHR 32 return wrong results)
m (Text replace - "Versions 3.6.20 and higher" to "Since Version 3.6.20")
Line 7: Line 7:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Versions 3.6.20 and higher
+
Since Version 3.6.20
  
 
|DESCRIPTION=
 
|DESCRIPTION=

Revision as of 13:50, 20 March 2014

SHR (shift right) shifts each bit in <Number> N places to the right. The N rightmost bits are lost.

Syntax

<Number> SHR <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 SHR   3

2

See Also