BitShiftLeftInteger (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "{{Template:Float:BitShiftLeftInteger subtitle}} The <var>BitShiftLeftInteger</var> intrinsic function performs a left shift on the bits of an integer. ==S...")
 
Line 18: Line 18:


==Examples==
==Examples==
<ol><li>The following statement sets %y to 4 times %x:
The following statement sets %y to 4 times %x:
<p class="code">%y = %x:bitShiftLeftInteger(2)
<p class="code">%y = %x:bitShiftLeftInteger(2)
</p></ol>
</p>
 
==See also==
==See also==
{{Template:Float:BitShiftLeftInteger footer}}
{{Template:Float:BitShiftLeftInteger footer}}

Revision as of 21:47, 21 July 2011

Do left shift of bits in an integer (Float class)

[Introduced in Sirius Mods 7.9]


The BitShiftLeftInteger intrinsic function performs a left shift on the bits of an integer.

Syntax

%result = float:BitShiftLeftInteger( shift)

Syntax terms

%resultA variable to receive the result of shifting the bits of float.
floatThe float to be shifted.
shiftThe shift length.

Usage notes

  • The BitShiftLeftInteger function is available as of Sirius Mods Version 7.9

Examples

The following statement sets %y to 4 times %x:

%y = %x:bitShiftLeftInteger(2)

See also