Difference between revisions of "Math.floor"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | returns largest integer <= v | + | <translate>returns largest integer <= v</translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number) = math.floor(v) | (number) = math.floor(v) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''v''': (number) value to floor <br/> | + | '''v''': (number) <translate>value to floor</translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) floored value<br/> | + | '''Returns''' (number) <translate>floored value</translate><br/> |
Revision as of 13:33, 23 August 2018
Available since: Gideros 2011.6
Description
returns largest integer <= v
(number) = math.floor(v)
Parameters
v: (number) value to floor
Return values
Returns (number) floored value