Difference between revisions of "Math.fmod"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero. <source lang=...") |
|||
Line 4: | Line 4: | ||
Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero. | Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) | + | (number) = math.fmod(v1,v2) |
</source> | </source> | ||
− | '''v1 | + | '''v1''': (number) first value ''''''<br/> |
− | '''v2 | + | '''v2''': (number) second value ''''''<br/> |
'''Returns''' (number) remainder of division<br/> | '''Returns''' (number) remainder of division<br/> |
Revision as of 10:21, 23 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)
'v1: (number) first value '
'v2: (number) second value '
Returns (number) remainder of division