浏览代码

Merge branch 'hotfix/float_format_1116' into debug

hsun 1 年之前
父节点
当前提交
13da78a145
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/common.go

+ 1 - 1
utils/common.go

@@ -2127,7 +2127,7 @@ func FormatTableDataShowValue(x float64) (res string) {
 		res = xParts[0] + "." + resPart
 	}
 
-	if xDecimals < 2 {
+	if xDecimals <= 2 {
 		xDecimalsStr := xParts[1]
 		x, _ = strconv.ParseFloat(xParts[0]+"."+xDecimalsStr, 64)
 		res = xParts[0] + "." + xDecimalsStr