title: Openpyxl - How to read int value from cells in excel file
body: <p>I have the following sample code;</p>
  
  <pre><code>from openpyxl import load_workbook
  
  print "Going to execute the script"
  
  workbook = load_workbook("SampleExcel.xlsx", use_iterators = True)
  
  for worksheet in workbook:
      for row in worksheet.iter_rows():
          for cell in row:
              if(cell.internal_value != None):
                  print cell.internal_value           
  
  print "End of script execution"
  </code></pre>
  
  <p>Some cells in my excel files have non-decimal values like 1, 22, 732 etc. But cell.internal_value is giving me these values as 1.0, 22.0, 732.0 etc. How can I get the number values as it is seen in excel file?</p>
  
  <p>Ps: I am using openpyxl version 1.8.5. But I have tried the latest version of openpyxl 2.1.0 by changing <code>cell.internal_value</code> to <code>cell.value</code> and the same problems exists there as well. </p>