Lasso Soft Inc. > Home

[Integer->BitShiftLeft]

[Integer->BitShiftLeft] shifts the bits in the base integer left by the number specified in the integer parameter. The bit offset should be between 1 and 64.

  • Syntax
  • Parameters
[Integer Variable->(BitShiftLeft: Bit Offset)]
Required Parameters
Integer Variable The integer value which should be operated upon.
Bit Offset The number of places to which the base integer should be shifted.
Examples

To shift the bits within an integer:

Use the [Integer->BitShiftRight] tag. The following example shifts the integer 8 (1000) right by 2 bits, the equivalent of multiplying the integer by 4, returning 32.

[Variable: 'Result'=8]
[($Result)->(BitShiftLeft: 2)]
[Variable: 'Result']
Result:
32
Tag Link [Integer->BitShiftLeft] Category Math
Type Member Data Source Any
Support Preferred Version 5.0
Output Type None (Modifies in place) Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft