---
title: "bitwise_rushift"
canonical: "https://support.appfire.com/space/PSJC/434864580/bitwise_rushift"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Takes two numbers, right shifts the bits of the first operand.The vacant leftmost position is filled with 0 instead of the sign bit.

Takes two numbers, right shifts the bits of the first operand.The vacant leftmost position is filled with 0 instead of the sign bit. The second operand decides the number of places to shift.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | bitwise_rushift(int1, int2) | **Package** | bitwise |
| **Alias** |  | **Pkg Usage** | b_rushift(int1, int2) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| int1 | Integer | Yes | First operand. |
| int2 | Integer | Yes | Second operand. Number of bits to shift. |

## Return Type

**Integer**

The result of the bitwise operation (unsigned right shift).

## Example

```javascript
use "bitwise";
int result = b_rushift(int1, int2);
//------------or-----
//no package needed
int result = bitwise_rushift(int1, int2);
```

## See also

> Macro (contentbylabel)