Browse Source

Update styles.go

修复获取百分比值时,GetCellValue返回值不准确的问题
WXDYGR 5 years ago
parent
commit
1c2e7c5c68
1 changed files with 1 additions and 1 deletions
  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