Browse Source

Update styles.go

修复获取百分比值时,GetCellValue返回值不准确的问题
WXDYGR 5 năm trước cách đây
mục cha
commit
1c2e7c5c68
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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