title: phpexcel reading incorrect decimal values
body: <p>I have some values in excel sheet as <code>75.4</code>, <code>66.8</code>and some as integers <code>24554</code>. In database I have set the column type as <code>varchar(11)</code>. The problem is that some decimal values are displaying correctly and some are displaying as <code>75.40000000000001</code> or <code>73.6</code> is read as <code>73.59000000</code>. I have 2 environments one local m/c and one workspace . In my local m/c it is showing correctly. So, I am not understanding what might be the issue. Following is my code</p>
  
  <pre><code>$sheet = $objPHPExcel-&gt;getSheet(0);
  $highestRow = $sheet-&gt;getHighestRow();
  $highestColumn = $sheet-&gt;getHighestColumn();
  
  $getValues = array();
  
  for ($row = 4; $row &lt;= $highestRow; $row++){
      //  Read a row of data into an array
      $rowData = $sheet-&gt;rangeToArray('A' . $row . ':' . $highestColumn . $row); //gives the sheet values
      if(!empty($rowData[0][0])){ //if row is null
          //  Insert row data array into database
          $getValues[] = $this-&gt;getValuesModel($rowData, $data);
      }
  
  }
  </code></pre>
  
  <p>I doubt that there might be some php configuration setting because local and server are different but not sure. Kindly, guide me through this.</p>