Skip to main content

LOG10

Returns the base-10 logarithm of a number.

Syntax​

expression.LOG10(arg1);

expression - A variable that represents an ApiWorksheetFunction class.

Parameters​

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

Returns​

number

Example​

Calculate the base-10 logarithm of a number in a spreadsheet.

// How do I find the logarithm with base 10 in a spreadsheet?

// Get the common logarithm value of a number in a spreadsheet.

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