#3298 Move percentage string formatting into its own method, and don't append .00 to 100%

This commit is contained in:
Mitchell Livingston
2010-06-24 00:00:43 +00:00
parent 075169b409
commit 2980120847
7 changed files with 36 additions and 28 deletions

View File

@@ -35,6 +35,8 @@
+ (NSString *) stringForSpeedAbbrev: (CGFloat) speed;
+ (NSString *) stringForRatio: (CGFloat) ratio;
+ (NSString *) percentString: (CGFloat) progress longDecimals: (BOOL) longDecimals;
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds;
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxFields: (NSUInteger) max;