How to divide down to decimals and not get zero in Java?
Asked 2013-02-07T00:00:35.897
13
double[] arrayName = new double[10];
arrayName[0] = (14/49)*100;
Trying to get percentage of two numbers, 14 / 49, and add results to an array. All it returns is 0.0. Same thing if I use float instead of double. New to Java.