In the first case (i=i/2.5), it's converting the i to double, dividing by 2.5 and converting the answer back to integer. In the second case, it's converting the 2.5 to integer and doing an integer divide. The first method seems like the correct one, although less efficient...