|
@@ -1291,7 +1291,8 @@ func roundNumber(num string, decimalPlaces int, hasPercent bool) string {
|
|
|
if hasPercent {
|
|
|
numDecimal = numDecimal.Mul(decimal.NewFromInt(100))
|
|
|
}
|
|
|
- numStr := numDecimal.Round(int32(decimalPlaces)).String()
|
|
|
+ numFloat, _ := numDecimal.Round(int32(decimalPlaces)).Float64()
|
|
|
+ numStr := strconv.FormatFloat(numFloat, 'f', decimalPlaces, 64)
|
|
|
if hasPercent {
|
|
|
numStr += "%"
|
|
|
}
|