Scalar FunctionsMath Functions
binary_shift_left
Shift a 64-bit integer left by a number of bits.
Bits shifted past the
top are dropped and zeros fill in from the right. The shift count is
taken modulo 64; a negative count returns null.
The result is a long; a null argument gives null.
Aliases: shift_left
Syntax
binary_shift_left(value, shift)Parameters
Prop
Type
Returns: long
Examples
Example 1
print binary_shift_left(1, 4), binary_shift_left(5, 1), binary_shift_left(1, 65)| print_0 (long) | print_1 (long) | print_2 (long) |
|---|---|---|
| 16 | 10 | 2 |