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

Add scaleByPowerOf10 method to BigDecimal

XMLWordPrintable

    • tiger
    • generic
    • generic

      To avoid compatibilty concerns the jat had with jsr13 changing the representation of numbers returned by movePointLeft and movePointRight, those method's semantics remain (mostly) unchanged. However, the functionality of those methods (when possible, changing the scale without changing the integer portion) is still needed. A single scaleByPowerOf10 method can meet those needs; if would be behave similarly to movePointLeft. (movePoint{Left, Right} both accept negative arguments which move the point in the direction opposite to the method name.)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: