numpy append changes int to float and adds zeros
<p>I need to transform ranges to consecutive numbers. The ranges are in ints and the result should be the same. This is what I have so far:</p>

<p>import numpy as np</p>

<pre><code>mydata = np.array (
[49123400, 49123499],
[33554333, 33554337])

numbers_list = np.empty((0))
base_dir = "/foo.csv"

for x in mydata:
    numbers = np.arange(x[0], x[1]+1)
    numbers_list = np.append(numbers_list, numbers, axis=0)
np.savetxt(base_dir, numbers_list, delimiter=";")
</code></pre>

<p>What I would like to see is a list like that:</p>

<pre><code>49123400,
49123401,
49123402,...
49123499,
33554333,
33554334,...
33554399
</code></pre>

<p>But what I get is:</p>

<pre><code>4.912340000000000000e+11 and so on...
</code></pre>

<p>Where am I going wrong? Why is there a change from int to float, when I am doing the append?</p>