Difference between revisions of "Integer Divide Operator"
From GiderosMobile
| Line 2: | Line 2: | ||
'''Supported platforms:''' android, ios, mac, pc<br/>  | '''Supported platforms:''' android, ios, mac, pc<br/>  | ||
'''Available since:''' Gideros 2017.10<br/>  | '''Available since:''' Gideros 2017.10<br/>  | ||
| − | === Description ===  | + | === <translate>Description</translate> ===  | 
<translate><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   Put the integer result of divide 'b' by 'c' into 'a'.<br /></translate>  | a=b<b> // </b>c   Put the integer result of divide 'b' by 'c' into 'a'.<br /></translate>  | ||
| − | === Examples ===  | + | === <translate>Examples</translate> ===  | 
'''Simple example'''<br/>  | '''Simple example'''<br/>  | ||
<source lang="lua">    | <source lang="lua">    | ||
| Line 13: | Line 13: | ||
{|-  | {|-  | ||
| style="width: 50%; vertical-align:top;"|  | | style="width: 50%; vertical-align:top;"|  | ||
| − | === Methods ===  | + | === <translate>Methods</translate> ===  | 
| style="width: 50%; vertical-align:top;"|  | | style="width: 50%; vertical-align:top;"|  | ||
| − | === Events ===  | + | === <translate>Events</translate> ===  | 
| − | === Constants ===  | + | === <translate>Constants</translate> ===  | 
|}  | |}  | ||
Revision as of 07:28, 24 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 | 
EventsConstants |