Calculates the signed right shift of the `left` value by `right` bits.

<br />

| Usage | Returns |
|---|---|
| `Number.rightShift(right)` | Number |

| Argument | Type | Details |
|---|---|---|
| this: `left` | Number | The left-hand value. |
| `right` | Number | The right-hand value. |

## Examples

### Code Editor (JavaScript)

```javascript
/**
 * Unsigned 8-bit type example.
 *
 * 20 as binary:   00010100
 * Right shift 2:  00000101
 *
 * 00000101 is binary for 5.
 */

print(ee.Number(20).rightShift(2));  // 5
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
"""Unsigned 8-bit type example.

20 as binary:   00010100
Right shift 2:  00000101

00000101 is binary for 5.
"""

display(ee.Number(20).rightShift(2))  # 5
```