find values for which the result of division change in integer in python
<p>This might be a really silly question but I'm a bit stuck. I have three columns with data. Column C is the result of the division of Column A/Column B. The result of this simple operation gives me real numbers running from 0 to 15. I want to compute for which value in column A, the values in column C change in multiple (from 1, to 2, to 3). i.e.</p>

<pre><code>A             B              C=A/B

0.0     894.57         0.0
1.0     894.579620994  0.00111784348372
11.0    894.579622195  0.0122962783044
21.0    894.579625847  0.0234747130309
30.0    894.579632967  0.0335353040629
40.0    894.57964499   0.0447137381496
 ...        ...            ...
881.0   894.579705447  0.984820016188
891.0   894.579703891  0.995998451703
901.0   894.57970588   1.00717688326
911.0   894.579707084  1.01835531567
 ...       ...             ...
1781.0  894.579658537  1.99087916096
1791.0  894.57965582   2.00205760141 
1801.0  894.579658252  2.01323603034
</code></pre>

<p>What I want in other words is to find the values of A for which the values in C change the integer. In this case it would be the value for which it changes from 0.99 to 1., so it would be: 901; then from 1 to 2 it would be 1791, and so on. 
Any ideas are welcome. I thought I could find the residuals (%) but I cannot come up of how. </p>

<p>Maybe this would help:</p>

<pre><code>A = 1      # adapt this to your data
B = 894.57 # adapt this to your data

lastInt = -1
for i in range(0,1000):
   C = A / B
   newInt = int(C)
   if newInt!=lastInt:
       print "CHANGE: from {} to {}. A is {}".format(lastInt, newInt, A)
       lastInt = newInt
   A += 10  # adapt this to your data
</code></pre>

python bigdata division