The BITRSHIFT function is one of the engineering functions. It is used to return a number shifted right by the specified number of bits.
Syntax
BITRSHIFT(number, shift_amount)
The BITRSHIFT function has the following arguments:
Argument | Description |
---|
number | An integer greater than or equal to 0. |
shift_amount | A number of bits by which you want to shift number, an integer. |
Notes
Shifting a number right is equivalent to removing digits from the rightmost side of the binary representation of the number.
How to apply the BITRSHIFT function.
Examples
The figure below displays the result returned by the BITRSHIFT function.
