I am struggling to get a double value to set to the right number.
In the following code:
double d = (double) (500 / 1000) / 9000;
d
is set to 0.0
.
I understand that doubles have limits and perhaps my problem is that I am exceeding the limits, but if I am is there a more appropriate way to store the result of this calculation?