Prechádzať zdrojové kódy

Merge branch 'hotfix/float_format_1116' into debug

hsun 1 rok pred
rodič
commit
13da78a145
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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