Syntax
=BITRSHIFT(number, shift_amount)Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | A whole number from 0 up to 2^48 |
shift_amount | Required | Bits to shift (negative shifts left) |
How to use BITRSHIFT
BITRSHIFT takes 2 required arguments. Type =BITRSHIFT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=BITRSHIFT(13, 2)Result =BITRSHIFT(4, -2)Result Related engineering functions
- BIN2OCTConverts a binary number to octal.
- BITANDReturns the bitwise AND of two numbers.
- BITLSHIFTReturns a number shifted left by a number of bits (multiplied by a power of 2).
- BITORReturns the bitwise OR of two numbers.
- BITXORReturns the bitwise exclusive OR of two numbers.
- COMPLEXBuilds a complex number as text from its real and imaginary parts.
- CONVERTConverts a number from one measurement unit to another, like feet to meters or Fahrenheit to Celsius.
- DEC2BINConverts a decimal number to binary.
- DEC2HEXConverts a decimal number to hexadecimal.