Prechádzať zdrojové kódy

Merge pull request #681 from WXDYGR/master

Fixed GetCellValue percentage accuracy
xuri 5 rokov pred
rodič
commit
fcbc7e3f88
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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