فهرست منبع

Merge branch 'hotfix/mix_table_percent' into debug

xyxie 7 ماه پیش
والد
کامیت
977f8637f5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/data/excel/mixed_table.go

+ 1 - 1
services/data/excel/mixed_table.go

@@ -1250,7 +1250,7 @@ func changePointDecimalPlaces(str string, changeNum int, numberType string, isPe
 	if isPercent {
 		if numberType == "number" { //百分数转成小数
 			val = val / 100
-			if decimalPlaces > 2 {
+			if decimalPlaces > 1 {
 				decimalPlaces += 2
 			} else if decimalPlaces == 1 {
 				decimalPlaces += 1