|
@@ -1195,6 +1195,9 @@ func handleMixCellShowStyle(showStyleList []string, calculateCellMap map[string]
|
|
|
// changePointDecimalPlaces 小数点位数加减和百分比格式
|
|
|
func changePointDecimalPlaces(str string, changeNum int, numberType string, isPercent bool) (newStr string) {
|
|
|
newStr = str
|
|
|
+ if numberType == "" && changeNum == 0 {
|
|
|
+ return
|
|
|
+ }
|
|
|
// 把字符串转成浮点数
|
|
|
val, _ := strconv.ParseFloat(str, 64)
|
|
|
if isPercent {
|