|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
DO NOT REPLY [Bug 48081] New: poi parsing excel accuracy is losthttps://issues.apache.org/bugzilla/show_bug.cgi?id=48081
Summary: poi parsing excel accuracy is lost Product: POI Version: 2.5 Platform: Other OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: HSSF AssignedTo: dev@... ReportedBy: xunwei@... hi! I am so sorry my english is not very good.But I had an urgent problem need to Solution by parsing excel with POI. The description of the problem: I have a project needs to parse excel in the number of amount. For example,the amount is 1835.6, But I got such a result 1835.600000000001 when i used poi parsing it with the os linux 64-bit . This is the code: import org.apache.poi.hssf.usermodel.HSSFCell; public double getNumberCellValueByPoi(HSSFSheet hssfsheet, int i, int j) { HSSFCell hssfcell = getCell(hssfsheet, i, j); double value=hssfcell.getNumericCellValue(); return value; } The result output in the console is 1835.600000000001。But if i run the project with the windows or linux 32-bit ,the result is right. I need your reply quickly .Thank you very much. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
DO NOT REPLY [Bug 48081] poi parsing excel accuracy is losthttps://issues.apache.org/bugzilla/show_bug.cgi?id=48081
--- Comment #1 from David Fisher <dfisher@...> 2009-10-28 21:04:22 UTC --- I have a couple of questions to ask you to help others reply to you problem. You say you are using version 2.5. This version is old, we just released version 3.5. I would suggest you try the following. (1) Upgrade to version 3.5 and see if you still have the 64 bit trouble. and / or (2) Only run your POI version 2.5 as 32 bit software. I hope these suggestions are helpful, please let us know. Also it will help to know which version of Java you are using. Regards, Dave -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
DO NOT REPLY [Bug 48081] poi parsing excel accuracy is losthttps://issues.apache.org/bugzilla/show_bug.cgi?id=48081
Nick Burch <nick@...> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Nick Burch <nick@...> 2009-10-29 05:00:44 UTC --- Excel always stores numbers as IEE floats. The only difference between your two systems is how they choose to print the float out You probably want to use the various utility methods to turn the float into the integer formatted as per the cell style. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
DO NOT REPLY [Bug 48081] poi parsing excel accuracy is losthttps://issues.apache.org/bugzilla/show_bug.cgi?id=48081
Josh Micich <josh@...> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |DUPLICATE --- Comment #3 from Josh Micich <josh@...> 2009-11-04 17:57:36 UTC --- *** This bug has been marked as a duplicate of bug 48124 *** -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
| Free embeddable forum powered by Nabble | Forum Help |