Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4920825

Add divide methods taking RoundingMode objects

XMLWordPrintable

    • tiger
    • generic
    • generic

      Among the changes in jsr13 is the introduction of a RoundinMode enum class to replace uses of an integer enum pattern of rounding modes defined in BigDecimal. The initial jsr13 proposal added a parallel method taking a RoundingMode object instead of an integer for one of the three uses of rounding mode integers as parameters. The parallel method added was setScale; this bug is to add parallel methods for the other two uses; i.e. augment

         divide(BigDecimal divisor, int roundingMode)
         divide(BigDecimal divisor, int scale, int roundingMode)

      with

         divide(BigDecimal divisor, RoundingMode)
         divide(BigDecimal divisor, int scale, RoundingMode)

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: