TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

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