Difference between revisions of "Mutation Operators"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2017.11<br/> === Description === <br /> Operators to mutate a value.<br /><br /> a<b> += </b>b &emsp...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2017.11<br/>
 
'''Available since:''' Gideros 2017.11<br/>
 
=== Description ===
 
=== Description ===
Line 12: Line 12:
 
a<b> %= </b>b &emsp; The result of 'a%b' is placed in 'a'.<br />
 
a<b> %= </b>b &emsp; The result of 'a%b' is placed in 'a'.<br />
 
a<b> ^= </b>b &emsp; The result of 'a^b' is placed in 'a'.  ^ is faster than a=math.pow(a,b)<br />
 
a<b> ^= </b>b &emsp; The result of 'a^b' is placed in 'a'.  ^ is faster than a=math.pow(a,b)<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|

Revision as of 08:57, 23 August 2018

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

Description


Operators to mutate a value.

a += b   Add 'b' to 'a'.
a -= b   Subtract 'b from 'a'.
a *= b   Multiply 'a' by 'b', result in 'a'.
a /= b   Divide 'a' by 'b', result in 'a'.
a %= b   The result of 'a%b' is placed in 'a'.
a ^= b   The result of 'a^b' is placed in 'a'. ^ is faster than a=math.pow(a,b)




Methods

Events

Constants