瀏覽代碼

混合表格,小数点位置

xyxie 7 月之前
父節點
當前提交
47b07930ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/data/excel/mixed_table.go

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

@@ -1227,7 +1227,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