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 }.