Jelajahi Sumber

混合表格,小数点位置

xyxie 7 bulan lalu
induk
melakukan
47b07930ef
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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