跳到主要内容

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

This example shows how to return the base-10 logarithm of a number.

// How to get the logarithm to the base 10.

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

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