poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57738] XSSFSheetXmlHandler returns incorrect values for numeric cells
Date Sun, 22 Mar 2015 22:52:19 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=57738

Nick Burch <apache@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Nick Burch <apache@gagravarr.org> ---
Both Excel's .xls and .xlsx use doubles to store numbers, and formatting rules
to specify how numbers should be shown to the user. If you want POI to give you
a string of "what Excel shows for a cell", you need to use DataFormatter

If you look at org.apache.poi.xssf.eventusermodel.XLSX2CSV you'll see an
example of doing this.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message