Partilhar via


BITLSHIFT( ) Function

Returns the result of shifting the bits of a numeric value to the left a specified number of positions.

BITLSHIFT(nExpression1, nExpression2)

Return Values

Numeric

Parameters

  • nExpression1
    Specifies the numeric value whose bits are shifted to the left. If nExpression1 is not an integer, it is converted to an integer before its bits are shifted.
  • nExpression2
    Specifies the number of bit positions to shift. If nExpression2 is not an integer, it is converted to an integer.

Example

x = 5  && 0101 binary
y = 1  && Shift bits 1 position left

? BITLSHIFT(x,y) && Returns 10, 1010 binary

See Also

BITAND( ) | BITCLEAR( ) | BITNOT( ) | BITOR( ) | BITRSHIFT( ) | BITSET( ) | BITTEST( ) | BITXOR( )