Skip to content

Commit 1c2e7c5

Browse files
authored
Update styles.go
修复获取百分比值时,GetCellValue返回值不准确的问题
1 parent ee35497 commit 1c2e7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

styles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ func formatToC(i int, v string) string {
909909
return v
910910
}
911911
f = f * 100
912-
return fmt.Sprintf("%d%%", int(f))
912+
return fmt.Sprintf("%.f%%", f)
913913
}
914914

915915
// formatToD provides a function to convert original string to special format

0 commit comments

Comments
 (0)