Info | ||
---|---|---|
| ||
This routine is available starting with katl-commons 2.5. |
Syntax
power(base, exponent)
Description
Excerpt |
---|
Returns the number raised to the desired power. |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
number | Number | Yes | The base Base number. |
base | Number | Yes | The exponent Exponent the base number is raised to. |
Return type
number
Example
Code Block |
---|
number a = power(2, 3); print("a= " + a); |
Prints: a= 8;
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|