浏览代码

Merge pull request #681 from WXDYGR/master

Fixed GetCellValue percentage accuracy
xuri 5 年之前
父节点
当前提交
fcbc7e3f88
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      styles.go

+ 1 - 1
styles.go

@@ -909,7 +909,7 @@ func formatToC(i int, v string) string {
 		return v
 	}
 	f = f * 100
-	return fmt.Sprintf("%d%%", int(f))
+	return fmt.Sprintf("%.f%%", f)
 }
 
 // formatToD provides a function to convert original string to special format