Update styles.go

修复获取百分比值时,GetCellValue返回值不准确的问题
formula
WXDYGR 5 years ago committed by GitHub
parent ee35497935
commit 1c2e7c5c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save