Difference between revisions of "Bitwise Operators"

From GiderosMobile
Line 11: Line 11:
 
a<b> &lt;&lt; </b>b &emsp; Bitwise shift 'a' by 'b' left.<br />
 
a<b> &lt;&lt; </b>b &emsp; Bitwise shift 'a' by 'b' left.<br />
 
a<b> &gt;&gt; </b>b &emsp; Bitwise shift 'a' by 'b' right.<br />
 
a<b> &gt;&gt; </b>b &emsp; Bitwise shift 'a' by 'b' right.<br />
<b> ~ </b>a &emsp; Bitwise 'NOT a'.<br />
+
<b> ~ </b>a &emsp; Bitwise 'NOT a'.<br />{|-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{|-
 
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===

Revision as of 10:12, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2017.10

Description


Bitwise operators to manipulate numbers.

a | b   Bitwise 'a OR b'.
a & b   Bitwise 'a AND b'.
a ~ b   Bitwise 'a XOR b'.
a << b   Bitwise shift 'a' by 'b' left.
a >> b   Bitwise shift 'a' by 'b' right.
~ a   Bitwise 'NOT a'.
{|- | style="width: 50%;"|

Methods

| style="width: 50%;"|

Events

Constants

|}