This commit is contained in:
laodaming
2023-09-27 16:51:29 +08:00
parent b6d0ef1c7c
commit 50c5e28381
2 changed files with 6 additions and 1 deletions

View File

@@ -8,7 +8,6 @@ import (
// 数字变成带千分位的字符串
func NumToStringWithThousandthPercentile(numberStr string) string {
numberStr = strings.TrimLeft(numberStr, "0") //去掉左边开始的0
if _, err := strconv.ParseFloat(numberStr, 64); err != nil {
logx.Error("is not a number")
return ""