GM: power

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is power(). It appears incorrectly here because of technical restrictions.
The correct title of this article is power. It appears incorrectly here because of technical restrictions.


Arguments

1: number
2: power

Limitations

none

Note: Please remove limitations and port them in the "Remarks" section at the end of the article.

The power() function in Game Maker is a mathematical function that returns the power of a number to another number.

If either x or n or both are 0, the result is 1. If n is positive x is multiplied with itself n times. If n is negative 1 is divided n times by x.

[edit] Examples

power(2,2)

returns 4.

power(3,4)

returns 81.

[edit] See Also

Content from Game Maker Knowledge Base, was used to expand this article. The content was contributed by tsg1zzn / Mithunder.
Personal tools