Skip to main content

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

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

// How to get the logarithm to the base 10 in a spreadsheet.

// Use a function to return the logarithm with the base-10 in a spreadsheet.

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