LOG
Returns the logarithm of a number to the specified base.
Syntax
expression.LOG(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The positive real number for which the logarithm will be returned. | |
arg2 | Optional | ApiRange | ApiName | number | The logarithm base. If omitted, it is equal to 10. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.LOG(56, 5));