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

Allow control of precision and rounding of BigDecimal arithmetic operations

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic, sparc
    • OS:
      generic

      Description

      This bug is a marker for the first portion of jsr13: adding new arithmetic methods that take a MathContext object which affects what rounding mode is used and how many digits the returned result has. (Currently, all BigDecimal operations other than divide and setScale always return the exact result.) This work also introduces a small MathContext class and a RoundingMode typesafe enum.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: