Difference between revisions of "Math.abs"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | Returns the absolute value of v. | + | <translate>Returns the absolute value of v.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number) = math.abs(v) | (number) = math.abs(v) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''v''': (number) number to use for absolute value <br/> | + | '''v''': (number) <translate>number to use for absolute value</translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) absolute value of v<br/> | + | '''Returns''' (number) <translate>absolute value of v</translate><br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the absolute value of v.
(number) = math.abs(v)
Parameters
v: (number) number to use for absolute value
Return values
Returns (number) absolute value of v