Difference between revisions of "Integer Divide Operator"
From GiderosMobile
Line 7: | Line 7: | ||
a=b<b> // </b>c   Put the integer result of divide 'b' by 'c' into 'a'.<br /> | a=b<b> // </b>c   Put the integer result of divide 'b' by 'c' into 'a'.<br /> | ||
+ | === Examples === | ||
+ | '''Simple example'''<br/> | ||
+ | <source lang="lua"><br /> | ||
+ | a=b//c -- faster than a=math.floor(b/c)</source> | ||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| |
Revision as of 10:45, 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
<br />
a=b//c -- faster than a=math.floor(b/c)
Methods |
EventsConstants |