Difference between revisions of "Integer Divide Operator"

From GiderosMobile
Line 3: Line 3:
 
'''Available since:''' Gideros 2017.10<br/>
 
'''Available since:''' Gideros 2017.10<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Divide a number to a whole number.<br /><br />
 
Divide a number to a whole number.<br /><br />
  
a=b<b> // </b>c &emsp; Put the integer result of divide 'b' by 'c' into 'a'.<br />
+
a=b<b> // </b>c &emsp; Put the integer result of divide 'b' by 'c' into 'a'.<br /></translate>
 
=== Examples ===
 
=== Examples ===
 
'''Simple example'''<br/>
 
'''Simple example'''<br/>
<source lang="lua"><br />  
+
<source lang="lua">  
 
a=b//c -- faster than a=math.floor(b/c)</source>
 
a=b//c -- faster than a=math.floor(b/c)</source>
 
{|-
 
{|-

Revision as of 14:34, 23 August 2018

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

Description


Divide a number to a whole number.

a=b // c   Put the integer result of divide 'b' by 'c' into 'a'.

Examples

Simple example

 
a=b//c -- faster than a=math.floor(b/c)

Methods

Events

Constants