Syntax
=BITLSHIFT(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 right) |
How to use BITLSHIFT
BITLSHIFT takes 2 required arguments. Type =BITLSHIFT( 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.
=BITLSHIFT(4, 2)Result =BITLSHIFT(16, -2)Result Related engineering functions
- BIN2DECConverts a binary number to decimal.
- BIN2HEXConverts a binary number to hexadecimal.
- BIN2OCTConverts a binary number to octal.
- BITANDReturns the bitwise AND of two numbers.
- BITORReturns the bitwise OR of two numbers.
- BITRSHIFTReturns a number shifted right by a number of bits (divided by a power of 2, rounded down).
- 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.