# rshift\(&gt;&gt;\) {#rshift}

**Parent topic:**[Operators](../../../Programming/Operators/Operators.md)

## Syntax {#syntax}

X&gt;&gt;a

## Arguments {#arguments}

**X** is an integral scalar/pair/vector/matrix.

**a** a is the number of bits to shift.

## Details {#details}

Shift bits to the right.

## Examples {#examples}

```
rshift(2048, 2);
// output: 512

1..10 >> 1;
// output: [0,1,1,2,2,3,3,4,4,5]

1:10>>1;
// output: 0 : 5
```

Related operator: [lshift](lshift.md)

