Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rounding on some decimal numbers #146

Open
GoogleCodeExporter opened this issue Jul 24, 2015 · 0 comments
Open

rounding on some decimal numbers #146

GoogleCodeExporter opened this issue Jul 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 19 Apr 2012 at 2:58

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant