Returns x <= 0 ? 0 : Math.floor(Math.log(x) / Math.log(base))
x <= 0 ? 0 : Math.floor(Math.log(x) / Math.log(base))
must be > 1
> 1
Calculates logarithm in a given base with doubles.