Solving for the power of 10