Log Calculator
How This Converter Works
Calculates the logarithm of a finite number x to a finite base b using the change-of-base rule. A valid real result requires x > 0 and b > 0, b != 1. Blank input clears the result; other invalid inputs display Invalid input. Valid results are not rounded.
Formula or rule
log_b(x) = ln(x) / ln(b), implemented as Math.log(x) / Math.log(b)
Example
- Input
- Number 100; base 10
- Calculation
- Math.log(100) / Math.log(10)
- Result
- 2