result = Shl(a, x[, bignum])
a
by x
bits to the left, padding the holes with zero bits. This
is called a logical shift. a
is converted to an unsigned 32-bit integer variable before the shift
(unless bignum
is set to True
).
Starting with Hollywood 9.0, there is an optional bignum
argument. If this is
set to True
, Shl()
will be able to operate on integers larger than 2^31 but keep
in mind that Shl()
still won't be possible to use the full 64-bit integer range because
Hollywood's numeric type is a 64-bit floating point number and is thus limited
to integers in the range of [-9007199254740992,9007199254740992].
False
) (V9.0)a = Shl(256, 3)This returns 2048.