If I want to find the nearest integer of $log_2(1,000,000,000)$
What I tried was to use the change of base rule for logarithms, using base 10 should simplify this down.
$$\dfrac{log_{10}(1,000,000,000)}{log_{10}(2)}$$
$$\dfrac{9}{log_{10}(2)}$$ Again the change of base, but this time to get rid of the 2 $$\dfrac{9}{(\dfrac{log_{2}(2)}{log_2(10)})}$$
$$9\cdot log_2(10)\approx 9 \cdot3 = 27$$
Although the nearest integer is 30. I'm a bit off, is there a way to improve this to actually get to 30?