跳到主要内容

LOG10

Returns the base-10 logarithm of a number.

Syntax

expression.LOG10(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe positive real number for which the base-10 logarithm will be returned.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.LOG10(56));