https://bz.apache.org/bugzilla/show_bug.cgi?id=63842

            Bug ID: 63842
           Summary: FractionFormat casts whole part of the value into
                    'int'
           Product: POI
           Version: 4.1.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 36825
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36825&action=edit
A possible quick fix for the issue

If the whole part of the value is too big or too small to fit in an 'int' then
FractionFormat loses data because of 'int' casting.

To reproduce;
- Set a cell value to a big number like '10100136259702'. And use a fraction
format for the cell.
- Format the cell value with DataFormatter (which uses FractionFormat).

Expected: value as it's displayed in excel.
Actual: '2147483647' (INT_MAX).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to