# rightArithShift() Function & Examples

Use the rightArithShift() bitwise function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## rightArithShift

#### x >> y

#### rightArithShift(x, y)

Try it yourself:

```calculio
8 >> 1
4 << 1
-12 >> 2
```

---

## rightArithShift(): Signed Bit Shift Right

**rightArithShift()** shifts integer bits right while preserving the sign bit. It approximates division by powers of two for signed integer values, with behavior determined by integer representation.

## Signed behavior

This differs from [rightLogShift()](https://calcul.io/function/rightLogShift/index.md), which fills left positions with zeros. Use [leftShift()](https://calcul.io/function/leftShift/index.md) for the opposite direction and [bitAnd()](https://calcul.io/function/bitAnd/index.md) to inspect flags.

Use integer operands and nonnegative shift counts. Negative values and large shifts should be tested against the platform’s bit-width rules rather than assumed from decimal arithmetic.

[All functions](https://calcul.io/functions/index.md)
