MC-Basic:SHR

From SoftMC-Wiki
Jump to: navigation, search
Language: English  • 中文(简体)‎

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