Difference between revisions of "Math.fmod"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[math]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate>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.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = math.fmod(v1,v2)
 
(number) = math.fmod(v1,v2)
</source>
+
</syntaxhighlight>
 +
 
 
=== Parameters ===
 
=== Parameters ===
'''v1''': (number) <translate>first value</translate> <br/>
+
'''v1''': (number) first value<br/>
'''v2''': (number) <translate>second value</translate> <br/>
+
'''v2''': (number) second value<br/>
 +
 
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) <translate>remainder of division</translate><br/>
+
'''Returns''' (number) remainder of division<br/>
 +
 
 +
{{Math}}

Latest revision as of 14:30, 13 July 2023

Available since: Gideros 2011.6
Class: math

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