TRY NEW VERSION

LN

LN(arg1) → { number | string | boolean }

Returns the natural logarithm of a number.

Parameters:

Name Type Description
arg1 number

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

Returns:

Type
number | string | boolean

Example

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

Resulting document