poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56315] Floating point rounding problems with ROUND function
Date Fri, 28 Mar 2014 12:22:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56315

Jostein Tveit <josteitv@pvv.ntnu.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31438|0                           |1
        is obsolete|                            |

--- Comment #1 from Jostein Tveit <josteitv@pvv.ntnu.no> ---
Created attachment 31453
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31453&action=edit
[PATCH] Patch against trunk to solve this bug

I fixed this bug by using

new java.math.BigDecimal(NumberToTextConverter.toText(n))

instead of

java.math.BigDecimal.valueOf(n)

All other unit tests goes green, so I assume this solution is ok.

-- 
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