Worked example

Operation: Custom base b
a: 8
b: 2

→ 3

Method and scope

Enter a positive argument a. The custom base b must be positive and different from one. Natural logarithms use e, common logarithms use 10. Results are floating-point approximations.

log_b(a) = ln(a)/ln(b)

Precision and limits

≈ marks an approximation. Display rounding does not change the internal calculation.