Difference between revisions of "BitOnInteger (Float function)"

From m204wiki
Jump to navigation Jump to search
(Created page with "{{Template:Float:BitOnInteger subtitle}} The <var>BitOnInteger</var> intrinsic function turns on a set of bits in an integer as indicated by another. ==Sy...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:Float:BitOnInteger subtitle}}
+
#REDIRECT [[BitOnInteger and BitOrInteger (Float functions)]]
 
 
The <var>BitOnInteger</var> [[Intrinsic classes|intrinsic]] function turns on a set of bits in an integer as indicated by another.
 
 
 
==Syntax==
 
{{Template:Float:BitOnInteger syntax}}
 
===Syntax terms===
 
<table class="syntaxTable">
 
<tr><th>%result</th><td>A variable to receive the result of turning on the bits of <var class="term">onBits</var> in <var class="term">float</var>.</td></tr>
 
<tr><th>float</th><td>The float to turn on bits in.</td></tr>
 
 
 
<tr><th>offBits</th><td>The bits to turn on.</td></tr>
 
 
 
</table>
 
 
 
==Usage notes==
 
<ul><li>The <var>BitOnInteger</var> function is available as of <var class="product">[[Sirius Mods]]</var> Version 7.9</ul>
 
 
 
==Examples==
 
 
 
<ol><li>The following statement rounds an integer up to the nearest odd integer:
 
<p class="code">%y = %x:bitOnInteger(1)
 
</p></ol>
 
 
 
 
 
==See also==
 
{{Template:Float:BitOnInteger footer}}
 

Latest revision as of 20:43, 29 September 2012