Skip to content

Commit fcbc7e3

Browse files
authored
Merge pull request #681 from WXDYGR/master
Fixed GetCellValue percentage accuracy
2 parents ee35497 + 1c2e7c5 commit fcbc7e3

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)