I declared a variable as a double in java from two figures and it doesn't seem to be coming up properly in the output. For instance, my runs figure was 18, the balls figure was 21, however when printed to screen, the strikerate variable only displayed as 0.0. Can anybody see my issue here? :)
double strikerate = runs/balls;
System.out.println(runs);
System.out.println(balls);
System.out.println(" ");
System.out.println("Strikerate: " + strikerate);