|
@@ -1185,7 +1185,7 @@ public class StringUtils {
|
|
|
}
|
|
|
String val = new BigDecimal(handleNull(number)).setScale(handleObj2Integer(scale), BigDecimal.ROUND_HALF_UP).toString();
|
|
|
if (val.contains(".")) {
|
|
|
- return new BigDecimal(val).toString().replaceAll("(0+|\\.0+)$", "");
|
|
|
+ return new BigDecimal(val).stripTrailingZeros().toPlainString();
|
|
|
}
|
|
|
return val;
|
|
|
}
|