Summary: | DataFormatter Fractions for Whole Numbers | ||
---|---|---|---|
Product: | POI | Reporter: | Robert Kish <robert_kish> |
Component: | POI Overall | Assignee: | POI Developers List <dev> |
Status: | RESOLVED LATER | ||
Severity: | normal | CC: | robert_kish |
Priority: | P2 | ||
Version: | 3.8-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
Robert Kish
2012-04-25 19:55:29 UTC
I've just tested with r1497023, and the formatting now works the same as in excel for a whole number and "# #/#", so it looks like some of the recent fraction format fixes have solved this. (In reply to Nick Burch from comment #1) > I've just tested with r1497023, and the formatting now works the same as in > excel for a whole number and "# #/#", so it looks like some of the recent > fraction format fixes have solved this. I've just tested with 3.10-beta1. The calculations, for the most part, are better. (See https://issues.apache.org/bugzilla/show_bug.cgi?id=55419) The FractionFormat class, that implements the fractions logic, is now documented as not handling the Excel's spacing. While not ideal, because the solution itself is quite difficult, it's a good start. It's more important for the numeric portion to be more correct, than the whitespace to be valid. I'm OK with how this was handled. |