Skip to content

Math.RShift

Name Mandatory Description Default Type
⬅️ Input The integer or the sequence of integers to shift the bits of. IntInt2Int3Int4Int8Int16Color[Any]
Output ➡️ Outputs the value resulting from the right shift operation. IntInt2Int3Int4Int8Int16Color[Any]
Operand No The number of positions to shift the bits of the input value to the right by. 0 IntInt2Int3Int4Int8Int16Color[Any]

This shard shifts the bits of the input value to the right by the number of positions specified in the Operand parameter. The shard then outputs a value, whose binary representation is the resulting shifted binary.

Examples

1
2
4 | Math.RShift(2) | Log
Assert.Is(1 Break: true)

[info] [sample-wire] 1