Ver Fonte

Merge pull request #681 from WXDYGR/master

Fixed GetCellValue percentage accuracy
xuri há 5 anos atrás
pai
commit
fcbc7e3f88
1 ficheiros alterados com 1 adições e 1 exclusões
  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