
Re: Floor of the log equation: s = (floor(log10(x))+1)*x  round((10^(floor(log10(x))+1)10)/9)
Posted:
May 22, 2013 11:09 PM


Thank you Jim! I ended up developing a search algorithm for that like you've suggested.
Since I don't have log(x) I calculate x using log(s). If log(x(s)) < log(s) then I recalculate using log(x(s)) and keep doing that until both have the same value.
I didn't manage to prove it's correctness but it works! ;)

