You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/03/28 13:22:53 UTC

[Bug 56315] Floating point rounding problems with ROUND function

https://issues.apache.org/bugzilla/show_bug.cgi?id=56315

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

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

--- Comment #1 from Jostein Tveit <jo...@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