I want to calculate the percent from 8000000 of 17000. The result should be 0.2125 but I'm getting always 0.0
My code
double result = 17000/8000000*100;
I want to calculate the percent from 8000000 of 17000. The result should be 0.2125 but I'm getting always 0.0
My code
double result = 17000/8000000*100;