|
|
@@ -2184,8 +2184,7 @@ public class CoinServiceImpl implements CoinService {
|
|
|
DecimalFormat df = new DecimalFormat("0.###E0"); // 科学计数法
|
|
|
return df.format(number).replace("E-0", "E-"); // 修正E-09为E-9
|
|
|
} else {
|
|
|
- DecimalFormat df = new DecimalFormat("0.######"); // 普通小数
|
|
|
- return df.format(number);
|
|
|
+ return new BigDecimal(str).divide(BigDecimal.ONE, new MathContext(3)).stripTrailingZeros().toPlainString();
|
|
|
}
|
|
|
}
|
|
|
|