Bug in BigDecimal.toPlainString()

2019-06-05 Thread Guillermo Rodriguez Garcia
Hi all, BigDecimal.toPlainString() does not work as expected for negative, scaled integer valees. Here's a bug report with a test case and a fix: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90759 BR, Guillermo Rodriguez Garcia guille.rodrig...@gmail.com

Bug in BigDecimal.stripTrailingZeros()

2019-06-05 Thread Guillermo Rodriguez Garcia
Hi all, BigDecimal.stripTrailingZeros() throws an exception when the value is zero. Here's a bug report with a test case and a fix: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90755 BR, Guillermo Rodriguez Garcia guille.rodrig...@gmail.com