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

Tiger Prototype build back_log bug java.math.BigDecimal : add(augend ,mc)

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)

      Not working as per expected for the following data
      points:
      String double01 = "80791306.25";
      String double02 = "1958280977.5";
      Note: also fails in
       precision=1 roundingMode=CEILING
       precision=1 roundingMode=DOWN
       precision=1 roundingMode=FLOOR


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

      D:\shantaram\tiger\maths\bugs\bug11_v2>java TestAddDataPoint01

      precision=1 roundingMode=UP
      result toString() = 2E+9 result scale = -9
      expected toString() = 3E+9 expected scale = -9

      Note:

      Modes test fail in : UP, DOWN, CEILING, FLOOR
      Modes test pass in : HALF_EVEN, HALF_UP, HALF_DOWN


      The test program is attahced.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: