Difference between revisions of "MC-Basic:SHR"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= <''Number''> SHR <''N''> |AVAILABILITY= Versions 3.6.20 and higher |DESCRIPTION= SHR (shift right) shifts each bit in <Number> N places to th…')
 
m (1 revision)
(No difference)

Revision as of 16:10, 13 December 2010

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 32

Scope

Configuration, Task or Terminal

Examples

-->?  16 SHR   3

2

See Also