LOG function

LOG(Number, Base?) LOG(Number; Base?)

Number

Number or { Number }

The input number.

Base

Number or { Number } (optional)

The base of the logarithm. If omitted, it is assumed to be 10.

Returns

Number or { Number }

The logarithm of a number.

Returns the logarithm of a number using a custom base.

Examples

LOG(100, 10)LOG(100; 10)

Returns 2.

LOG(10000, 10)LOG(10000; 10)

Returns 4.

LOG({ 100, 10000 }, 10)LOG({ 100; 10000 }; 10)

Returns the array { 2, 4 }{ 2; 4 }.

{ LOG(100, 10), LOG(10000, 10) }{ LOG(100; 10); LOG(10000; 10) }

Returns the array { 2, 4 }{ 2; 4 }.