LogN

concerns

The LogN function returns the logarithm to a given base.

 

Syntax

LogN(Value, N)

Return value

Type

Description

Double

LogN of value to base N

Parameter

Use

Name

Type

Passing

Description

Required

Value

Double

ByVal

Value for determining the logarithm (value > 0)

Required

N

Double

ByVal

Base of the logarithm

Example

Dim X As Double, Log10 As Double

X := 100

Log10 := LogN(X, 10)

 

In this example, the logarithm of the number 100 is calculated to base 10. The result is 2.