You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2024/05/24 13:49:00 UTC
[jira] [Closed] (OFBIZ-13103) Replace deprecated BigDecimal.ROUND_HALF by RoundingMode.HALF
[ https://issues.apache.org/jira/browse/OFBIZ-13103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-13103.
-----------------------------------
Resolution: Done
> Replace deprecated BigDecimal.ROUND_HALF by RoundingMode.HALF
> --------------------------------------------------------------
>
> Key: OFBIZ-13103
> URL: https://issues.apache.org/jira/browse/OFBIZ-13103
> Project: OFBiz
> Issue Type: Improvement
> Components: accounting, birt, party, product/catalog
> Affects Versions: Upcoming Branch
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: Upcoming Branch
>
>
> Address this deprecation
> {quote}
> int java.math.BigDecimal.ROUND_HALF_UP
> Deprecated. Use RoundingMode.HALF_UP instead.
> Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. Behaves as for ROUND_UP if the discarded fraction is ≥ 0.5; otherwise, behaves as for ROUND_DOWN. Note that this is the rounding mode that most of us were taught in grade school.
> {quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)