This must be pretty basic Java question but I can't get why below program outputs 1.0:
public class Testing {
public static void main(String args[]) {
int width = 1920;
int height = 1080;
double ratio = width / height;
System.out.println("Ratio: " + ratio + "");
}
}
I expect no surprises.