---
title: "bitwise_rshift"
canonical: "https://support.appfire.com/space/PSCONF/15303766/bitwise_rshift"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | bitwise_rshift(int1, int2) | **Package** | bitwise |
> | **Alias** |  | **Pkg Usage** | b_rshift(int1, int2) |

## Description

> Macro (excerpt)
> 
> Takes two numbers, right shifts the bits of the first operand, the second operand decides the number of places to shift.

Takes two numbers, right shifts the bits of the first operand, the second operand decides the number of places to shift.

## Parameters

> Macro (table-plus)
> 
> | 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 (signed right shift).

## Example

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

## See also

> Macro (contentbylabel)