Hello I have a loop like this:

int j;
for(float i = 0.0f, j = 0; i <= 1.0f; i=i+(1.0f/CDF_RESOLUTION, j++))
intervalEdges.push_back(j);

For some reason when I look at "j" value it is represented as a floating point number.

Any idea why? Is this the best way to try to do something like this??

Thanks!