[Solved] Java output issue? Program not getting desired result [format updated] [closed]
Try with int probability = x / 1000; // 1/100 of the value to get an probability in percent (integer) or float probably = x / 100000F; //F for a `float` double probability = x / 100000.0; //a decimal without a F is a `double` Without that, this can’t work : float probably = x … Read more