I have an weird issue. I'm trying to store the result of an equation into a double variable.
double s = (((100 + 1)*(1/3))/100 + (1/3));
This returns a value a 0 rather than .67 (the correct value calculated from a calculator). Any reason why this could happen?
Note: A solution of saying that I could just make s = .67 is not a solution,
Thanks in advance.