Difference between revisions of "Math.pow"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns v1 raised to the power of v2.
 
Returns v1 raised to the power of v2.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = math.pow(v1,v2)
 
(number) = math.pow(v1,v2)
 
</source>
 
</source>

Revision as of 15:28, 13 July 2023

Available since: Gideros 2011.6
Class: math

Description

Returns v1 raised to the power of v2. <syntaxhighlight lang="lua"> (number) = math.pow(v1,v2) </source>

Parameters

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

Return values

Returns (number) result of exponentiation

See also

Mutation Operators