Difference between revisions of "Math.fmod"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
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">
+
<syntaxhighlight lang="lua">
 
(number) = math.fmod(v1,v2)
 
(number) = math.fmod(v1,v2)
 
</source>
 
</source>

Revision as of 15:28, 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. <syntaxhighlight lang="lua"> (number) = math.fmod(v1,v2) </source>

Parameters

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

Return values

Returns (number) remainder of division