Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
private static final double LN2 = 0.6931471805599453;
private static double zoom(int mapPx, int worldPx, double fraction) {
return Math.floor(Math.log(mapPx / worldPx / fraction) / LN2);
}
}