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...")
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%result</th><td>A variable to receive the result of shifting the bits of <var class="term">float</var>.</td></tr>
<tr><th>%result</th>
<tr><th>float</th><td>The float to be shifted.</td></tr>
<td>A numeric variable to receive the result of shifting the bits of <var class="term">float</var>.</td></tr>


<tr><th>shift</th><td>The shift length.</td></tr>
<tr><th>float</th>
<td>The integer to be shifted.</td></tr>
 
<tr><th>shift</th>
<td>The shift length.</td></tr>


</table>
</table>


==Usage notes==
==Usage notes==
<ul><li>The <var>BitShiftLeftInteger</var> function is available as of <var class="product">[[Sirius Mods]]</var> Version 7.9</ul>
<ul>
<li>The <var>BitShiftLeftInteger</var> function is available as of <var class="product">Sirius Mods</var> Version 7.9.
</ul>


==Examples==
==Examples==
<ol><li>The following statement sets %y to 4 times %x:
The following statement sets <code>%y</code> to 4 times <code>%x</code>:
<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}}

Latest revision as of 17:30, 2 November 2012

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

%result A numeric variable to receive the result of shifting the bits of float.
float The integer to be shifted.
shift The 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