Преглед изворни кода

混合表格,小数点位置

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