Difference between revisions of "BitOnInteger and BitOrInteger (Float functions)"

From m204wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{Template:Float:BitOrInteger subtitle}}
+
{{Template:Float:BitOnInteger and BitOrInteger subtitle}}
  
The <var>BitOrInteger</var> [[Intrinsic classes|intrinsic]] function performs a logical OR on the bits of two integers.
+
These [[Intrinsic classes|intrinsic]] functions perform a logical OR of the bits of two integers, that is, output bits are "on" if they are "on" in either of the inputs.
  
 
==Syntax==
 
==Syntax==
 +
{{Template:Float:BitOnInteger syntax}}
 
{{Template:Float:BitOrInteger syntax}}
 
{{Template:Float:BitOrInteger syntax}}
 
===Syntax terms===
 
===Syntax terms===

Revision as of 20:40, 29 September 2012

Bitwise Or of integers (Float class)

[Introduced in Sirius Mods 7.9]


These intrinsic functions perform a logical OR of the bits of two integers, that is, output bits are "on" if they are "on" in either of the inputs.

Syntax

%result = float:BitOnInteger( onBits)

%result = float:BitOrInteger( orBits)

Syntax terms

%resultA variable to receive the result of ORing together the bits of float and orBits.
floatOne of the floats to be ORed.
orBitsThe other float to be ORed.

Usage notes

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

Examples

See also