POWER
Returns the result of a number raised to a power.
Syntax
expression.POWER(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The base number. It can be any real number. | |
arg2 | Required | ApiRange | ApiName | number | The exponent to which the base number is raised. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.POWER(23, 4));