ソースを参照

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