Difference between revisions of "Math.fmod"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero.</translate> | <translate>Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero.</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
(number) = math.fmod(v1,v2) | (number) = math.fmod(v1,v2) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''v1''': (number) <translate>first value</translate> <br/> | '''v1''': (number) <translate>first value</translate> <br/> | ||
'''v2''': (number) <translate>second value</translate> <br/> | '''v2''': (number) <translate>second value</translate> <br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (number) <translate>remainder of division</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>remainder of division</translate><br/> |
Revision as of 07:28, 24 August 2018
Available since: Gideros 2011.6
Description
Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero.
(number) = math.fmod(v1,v2)
Parameters
v1: (number) first value
v2: (number) second value
Return values
Returns (number) remainder of division