How can one increment in a for loop such that:
for (int j = 0; j < 1.0; j+=0.01) {}
Immediately I know that having a decimal makes the use of int
odd.
EDIT:
Before anybody gets cheeky, I already know int
is incorrect...the question is how to perform the method since int
is not a valid manner to do so.