Log Function

Top  Previous  Next

Returns the logarithm of a number.

 

Syntax

 

value = Log( number [, base] )

 

Parameters

number

 

any expression

base

 

the base of the logarithm, if omitted it will return the natural logarithm (assumes base e)

 

 

 

returns

 

the log value

 

Examples

 

value = Log( 1 )                    ' Returns 0

value = Log( 16, 2 )                ' Returns 4

value = Log( 100, 10 )              ' Returns 2