Returns the logarithm of a number at a specified base.
The number to compute the logarithm of.
The base of the logarithm.
The logarithm of the number to the specified base.
Will throw an error if the value or base is not positive or if base is 1.
logBase(8, 2); // returns 3logBase(100, 10); // returns 2logBase(Math.E, Math.E); // returns 1 Copy
logBase(8, 2); // returns 3logBase(100, 10); // returns 2logBase(Math.E, Math.E); // returns 1
Returns the logarithm of a number at a specified base.