python error for large number mod operator
<p>I have some data which looks like this :</p>

<pre><code>353: 340122810048577428
354: 363117512048110005
355: 387632532919029223
356: 413766180933342362
357: 441622981929358437
358: 471314064268398780
359: 502957566506000020
360: 536679070310691121
361: 572612058898037559
362: 610898403751884101
363: 651688879997206959
</code></pre>

<p>I am trying to find which index is divisible by 1 million.</p>

<pre><code>index = my_data[:,0]
values = my_data[:,1]

k = 0
for i in values:
   k += 1
   if i % 1000000 == 0 :
      print i
      break

print k-1
</code></pre>

<p>For this code I am getting output as :</p>

<pre><code>5.02957566506e+17
359
</code></pre>

<p>But the value at index 359 is 502957566506000020 for which the last 6 digits are not zero . What mistake am I making here ? </p>