Merge pull request #681 from WXDYGR/master

Fixed GetCellValue percentage accuracy
This commit is contained in:
xuri 2020-08-05 20:54:15 +08:00 committed by GitHub
commit fcbc7e3f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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