Difference between revisions of "Math.pow"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
returns v1 raised to the power of v2
+
<translate>returns v1 raised to the power of v2</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number) = math.pow(v1,v2)
 
(number) = math.pow(v1,v2)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''v1''': (number) value to exponentiate <br/>
+
'''v1''': (number) <translate>value to exponentiate</translate> <br/>
'''v2''': (number) power in which to exponentiate <br/>
+
'''v2''': (number) <translate>power in which to exponentiate</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) result of exponentiation<br/>
+
'''Returns''' (number) <translate>result of exponentiation</translate><br/>

Revision as of 13:34, 23 August 2018

Available since: Gideros 2011.6

Description

returns v1 raised to the power of v2

(number) = math.pow(v1,v2)

Parameters

v1: (number) value to exponentiate
v2: (number) power in which to exponentiate

Return values

Returns (number) result of exponentiation