https://issues.apache.org/bugzilla/show_bug.cgi?id=46156
Summary: AddEval does not process properly
Product: POI
Version: 3.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: regression
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Currently when evaluate the addition of two double variables, + is use
directly.
But as we know there are precision loss in java float types, like:
System.out.println(0.05+0.01);
result: 0.060000000000000005
Actually it's not POI's fault but as POI's API gives the result of the
addition, it should be better if POI can return a immutable,
arbitrary-precision signed decimal numbers (like BigDecimal).
In fact, it's much more easier to process 0.06 than 0.060000000000000005.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]