The handling of certain rounding modes in NumberFormat, say UP and DOWN, has very similar structure. Maintenance of the code would be eased and the code clarified if the similar cases were combined.
- duplicates
-
JDK-8314169 Combine related RoundingMode logic in j.text.DigitList
-
- Resolved
-
- relates to
-
JDK-8039915 Wrong NumberFormat.format() HALF_UP rounding when last digit exactly at rounding position greater than 5
-
- Closed
-