log() Function

Function

log( number, base )

Returns the logarithm of the number using the specified base, which is the power that base must be raised to, to equal the number.

Parameters

Keyword Type Description

number

Decimal

A number, the logarithm of which will be returned.

base

Decimal

The base to use in the logarithm calculation. 10 and e are common values for the base.

Returns

Decimal

Examples

You can experiment with this function in the test box below.

Test Input

log(8,2) returns 3

Open in Github Built: Fri, Nov 19, 2021 (11:59:11 AM)

On This Page

FEEDBACK