浏览代码

混合表格避免科学计数

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

+ 1 - 1
utils/config.go

@@ -133,7 +133,7 @@ func init() {
 
 // FormatMixTableDataShowValue 格式化自定表格显示数据
 func FormatMixTableDataShowValue(x float64) (res string) {
-	res = fmt.Sprint(x)
+	res = strconv.FormatFloat(x, 'f', -1, 64)
 	return
 }