TRY NEW VERSION

LOG

LOG(arg1, arg2) → { number | string | boolean }

Returns the logarithm of a number to the base you specify.

Parameters:

Name Type Description
arg1 number

Is the positive real number for which you want the logarithm.

arg2 number

Is the base of the logarithm; 10 if omitted.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.LOG(56, 5));
builder.SaveFile("xlsx", "LOG.xlsx");
builder.CloseFile();

Resulting document