Tiger Prototype build back_log bug
java.math.BigDecimal : add(augend ,mc)
Not working as per expected for the following data
points:
String double01 = "428778415.25";
String double02 = "926126038.03125";
Note:
also fail when used for
precision=2 roundingMode=HALF_DOWN
precision=3 roundingMode=HALF_EVEN
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_05_
jun_2003_20_43)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b08, mixed mode)
D:\shantaram\tiger\maths\bugs\bug10_v3>java TestAddDataPoint02
precision=3 roundingMode=HALF_UP
result toString() = 1.36E+9 result scale = -7
expected toString() = 1.35E+9 expected scale = -7
The test program is attached.
java.math.BigDecimal : add(augend ,mc)
Not working as per expected for the following data
points:
String double01 = "428778415.25";
String double02 = "926126038.03125";
Note:
also fail when used for
precision=2 roundingMode=HALF_DOWN
precision=3 roundingMode=HALF_EVEN
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_05_
jun_2003_20_43)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b08, mixed mode)
D:\shantaram\tiger\maths\bugs\bug10_v3>java TestAddDataPoint02
precision=3 roundingMode=HALF_UP
result toString() = 1.36E+9 result scale = -7
expected toString() = 1.35E+9 expected scale = -7
The test program is attached.