bitwiseShiftLeft
|
The bitwiseShiftLeft function bitwise left shifts the first Integer
{int1} by the number of bits specified in the second number {int2}
and returns the result as an Integer.
The arguments are assumed to be Integers, and are not checked for the correct type.
Characters and Boolean arguments will be treated as Integers in this function. Usage The bitwiseShiftLeft function is an inexpensive substitute for multiplying
a number if the multiplier is a power of 2. In other words, multiplying a number by 2
(21) s the same as shifting left the number by 1, and multiplying a number by 4 (22)
is the same as shifting left the number by 2, etc.
(bitwiseShiftLeft num1 num2) The result after shifting left the {int1} argument by {int2} times.
Expression:
Arguments
Name
Type
Description Argument: num1 Integer Character Boolean
The Integer to be shifted. Argument: num2 Integer Character Boolean
The Integer of places to shift left.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Integer | Character | Boolean |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|