Difference between revisions of "Math.fmod"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Returns the remainder of the division of v1 by v2 that rounds the quotient towards zero.
+
<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 ===
 
=== Parameters ===
'''v1''': (number) first value <br/>
+
'''v1''': (number) <translate>first value</translate> <br/>
'''v2''': (number) second value <br/>
+
'''v2''': (number) <translate>second value</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) remainder of division<br/>
+
'''Returns''' (number) <translate>remainder of division</translate><br/>

Revision as of 13:34, 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)

Parameters

v1: (number) first value
v2: (number) second value

Return values

Returns (number) remainder of division