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

Tiger Prototype build back_log bug java.math.BigDecimal : add() Mode: HalfDown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 5.0
    • core-libs
    • x86
    • windows_2000

      Tiger Prototype build back_log bug
      java.math.BigDecimal add(augend,mc) Rounding Mode HALF_DOWN
      Win2000

      actual result and expected output are not ok.

      The java version and output is:
      ------------------------------
      java version "1.5.0-internal"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-internal-darcy_05_
      jun_2003_20_43)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b08, mixed mode)

      D:\shantaram\tiger\maths\bugs\bug5_v1>java AddHalfDown
      bd01 long01Value = 99999999
      bd02 long02Value = 81512
      precision=6 roundingMode=HALF_DOWN addResult longValue = 100081000
      precision=6 roundingMode=HALF_DOWN expectedResult longValue = 100082000
       
      The test program is attached.

            darcy Joe Darcy
            spandeorcl Shantaram Pande (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: