I am sorry if this is a noob question, I need help with relatively simple math problem and assurance that I understand the problem correctly.
I have a map-like program that zooms in and zooms out if you press the + and - icons (much like google map). Every time you zoom the map size doubles or halves. I know the minimum and maximum size of the map, how do I calculate the number of the doubling steps?
I was thinking of this:
A on power of 2*x equals B, where A is the minimal zoom, B is the maximal zoom a x is the number of steps between them. Am I right?
How do I calculate x form that formula?
Many thanks