Difference between revisions of "Integer Divide Operator"
From GiderosMobile
(added another example) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | |||
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | ||
'''Available since:''' Gideros 2017.10<br/> | '''Available since:''' Gideros 2017.10<br/> | ||
Line 10: | Line 9: | ||
=== Examples === | === Examples === | ||
− | |||
<source lang="lua"> | <source lang="lua"> | ||
a=b//c -- faster than a=math.floor(b/c) | a=b//c -- faster than a=math.floor(b/c) | ||
Line 20: | Line 18: | ||
a=b//1 -- result: a=5 (unique to gideros!) | a=b//1 -- result: a=5 (unique to gideros!) | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |