title: Python xlrd saving floats instead of ints while convertir xlsx to csv
body: <p>I'm using <code>xlrd</code>to read a <code>.xlsx</code> file and save them to a <code>.csv</code> file. Everything is ok, the problem is that all the <code>int</code> values of the <code>.xlsx</code> file are converted to <code>float</code> automatically on the <code>.csv</code> file. This means that if I've a <code>40</code> inside of a cell of the <code>.xlsx</code>file, it appears as <code>40.0</code>on the <code>.csv</code> file.</p>
  
  <p>I use the following code to read and convert it to <code>.csv</code>. </p>
  
  <pre><code>    wb = xlrd.open_workbook('share\docs\excelcontrol2.xlsx')
      sh = wb.sheet_by_name('Hoja1')
      archivo_csv = open('share\docs\output.csv', 'wb')
      wr = csv.writer(archivo_csv, delimiter=";")
      for rownum in xrange(sh.nrows):
          wr.writerow(sh.row_values(rownum))
      archivo_csv.close()
  </code></pre>
  
  <p>The .<code>xlsx</code> files contains <code>int</code> and <code>float</code> among other stuff. How can I save the <code>.csv</code> file to keep the original format? I mean, whitout changing the <code>int</code> to <code>float</code> and leave the rest as it is?</p>
  
  <p>Thanks in advance.</p>