You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/05/24 13:48:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17849302#comment-17849302 ]
ASF subversion and git services commented on OFBIZ-13103:
---------------------------------------------------------
Commit b57e2d1916b54ed840f441b03e2356a3a56ecfc4 in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=b57e2d1916 ]
Improved: Replace deprecated BigDecimal.ROUND_HALF by RoundingMode.HALF (OFBIZ-13103)
Address this deprecation
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.
> 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)