Recall the formula for changing the base of the logarithm from b to d is
log d x = log b x / log b d
In our case, b is 2 (binary), and d is 10 (decimal). Therefore, you need to divide by log 2 10, which is the same as multiplying by 1 / log 2 10, i.e. by 0.30102999566.
Now recall that a shift of 12 coincides with a division of 2 12 which is 4096. Dividing 1233 by 4096 gives 0.30102539062, which is a pretty good approximation for the denominator in the formula for changing the base.
source share