-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
tiger
-
generic
-
generic
The first proposed final draft and the draft of jsr13 from bug 4851776 include a requirement that
"If the result of an operation has the value zero, its scale is 0."
This is not consistent with the existing behavior of exact arithmetic methods, nor is it consistent with the behavior of other decimal arithmetic packages, including the forthcoming decimal section of IEEE 754R.
The working implemenation enforces the zero canonicallization in some situations but not others.
The zero canonicalization requirement should be removed and the usual scale rules apply to zeros too.
"If the result of an operation has the value zero, its scale is 0."
This is not consistent with the existing behavior of exact arithmetic methods, nor is it consistent with the behavior of other decimal arithmetic packages, including the forthcoming decimal section of IEEE 754R.
The working implemenation enforces the zero canonicallization in some situations but not others.
The zero canonicalization requirement should be removed and the usual scale rules apply to zeros too.
- relates to
-
JDK-4916149 Change BigDecimal ulp definition for zero values
- Resolved
-
JDK-4851776 Allow control of precision and rounding of BigDecimal arithmetic operations
- Resolved
-
JDK-4905407 Specification of toEngineeringString should be clarified
- Resolved
-
JDK-4609098 Add Decimal Arithmetic Enhancements into J2SE (JSR-013)
- Closed