|
From: | guillerodriguez.dev at gmail dot com |
Subject: | [Bug classpath/90755] BigDecimal.stripTrailingZero throws exception if value is zero |
Date: | Wed, 05 Jun 2019 09:56:44 +0000 |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90755 --- Comment #1 from Guillermo Rodriguez <guillerodriguez.dev at gmail dot com> --- Here's a simple fix: public BigDecimal stripTrailingZeros() { + if (intVal.signum() == 0) return ZERO; String intValStr = intVal.toString(); [...]
[Prev in Thread] | Current Thread | [Next in Thread] |