$m=\left\lfloor\frac{x}{\ln 10}+\frac{1}{2}\right\rfloor,$