Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-13103

Replace deprecated BigDecimal.ROUND_HALF by RoundingMode.HALF

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: