Template:SF

{{#expr: {{{1}}}round({{#expr: (ln({{{1}}})/ln(10)) -0.5 -{{{2}}}