Difference between revisions of "Integer Divide Operator"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
Line 11: | Line 11: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
a=b//c -- faster than a=math.floor(b/c) | a=b//c -- faster than a=math.floor(b/c) | ||
− | </ | + | </syntaxhighlight> |
'''Make an integer out of any numbers''' | '''Make an integer out of any numbers''' | ||
Line 17: | Line 17: | ||
b=5.123 | b=5.123 | ||
a=b//1 -- result: a=5 (unique to gideros!) | a=b//1 -- result: a=5 (unique to gideros!) | ||
− | </ | + | </syntaxhighlight> |
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |