sathishauit / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

rounding on some decimal numbers #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When you have to read a certain excel file, the function _getCellDetails  
format a decimal number and the format is like 0.0000 , the variable of format 
is read or has a numeric type;  changing the format of the variable to string 
fixes de rounding resulting number.

What is the expected output? What do you see instead?
a decimal number , rounded number
example; expected 6.96000 , see instead: 7.77777

Please provide any additional information below.
I fixex, in this way:
version 2.21
function _getCellDetails
after  line: 1633; I added this:
if($format==0.00000 ){ 
   $format="0.00000";
}

Original issue reported on code.google.com by fabinner...@gmail.com on 19 Apr 2012 at 2:58

Attachments: