Difference between revisions of "BitOnInteger (Float function)"

From m204wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{Template:Float:BitOnInteger subtitle}}
 
{{Template:Float:BitOnInteger subtitle}}
  
The <var>BitOnInteger</var> [[Intrinsic classes|intrinsic]] function turns on a set of bits in an integer as indicated by another.
+
The <var>BitOnInteger</var> [[Intrinsic classes|intrinsic]] function turns on the set of bits in one integer that are on in another. It is an alias for the <var>[[BitOrInteger (Float function)|BitOrInteger]]</var> function.
 +
 
  
 
==Syntax==
 
==Syntax==

Revision as of 14:18, 29 September 2012

Set bits in one integer from another (Float class) [introduced in Sirius Mods 7.9]


The BitOnInteger intrinsic function turns on the set of bits in one integer that are on in another. It is an alias for the BitOrInteger function.


Syntax

%result = float:BitOnInteger( onBits)

Syntax terms

%resultA variable to receive the result of turning on the bits of onBits in float.
floatThe float to turn on bits in.
onBitsThe bits to turn on.

Usage notes

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

Examples

  1. The following statement rounds an integer up to the nearest odd integer:

    %y = %x:bitOnInteger(1)


See also