Quote:
Originally Posted by justto_doit
its funny~
I have do something similar but I cannot get this error
e.g.
double distance;
double speedConv;
for (speedConv = 0; speedConv < 30; speedConv++)
{
distance = speedConv / 3600;
Debug.WriteLine(distance);
}
or may you point out where is the difference between us?
|
only difference is that yours is counting up in order.
Right now I'm generating random data to test my code, so they are never the same number.
That should not affect the test.
What error are you getting? I don't get an error, I just get a distance of 0.