Difference between revisions of "Math.abs"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Returns the absolute value of v.</translate> | <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 === | + | === <translate>Parameters</translate> === |
'''v''': (number) <translate>number to use for absolute value</translate> <br/> | '''v''': (number) <translate>number to use for absolute value</translate> <br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (number) <translate>absolute value of v</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>absolute value of v</translate><br/> |
Revision as of 07:28, 24 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