ingelabs / classpath

GNU Classpath, Essential Libraries for Java
Other
8 stars 3 forks source link

BigDecimal.toString() and .toEngineeringString() give wrong results for negative values #16

Closed ingebot closed 1 year ago

ingebot commented 1 year ago

Note: this issue was migrated automatically using bugzilla2github

Original bug ID: BZ#111706 From: @guillerodriguez Reported version: 0.99

ingebot commented 1 year ago

Comment author: @guillerodriguez

BigDecimal.toString() and .toEngineeringString() give wrong results when both the value and the scale are negative. These problems are similar to the issue already reported for .toPlainString (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90759).