math.pow
From GMod Wiki
Function | |
Syntax |
math.pow( Float number, Float toThePowerOf ) Where is this used? |
Description: | |
Multiplies the first argument by itself the amount of times specified in the second argument. | |
Returns: | Float number |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.pow]Math.pow [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This calculates 4 to the 2 power. |
---|---|
Used on | |
Code | math.pow(4,2); //This is 4 to the 2 power. (4 squared) The answer (or return value) will be 16. |
Output | N/A |