Showing
1 changed file
with
3 additions
and
3 deletions
@@ -18,9 +18,9 @@ | @@ -18,9 +18,9 @@ | ||
18 | @implementation NSNumber (YH_UnitConvert) | 18 | @implementation NSNumber (YH_UnitConvert) |
19 | 19 | ||
20 | - (NSNumber *)SToIntMS { | 20 | - (NSNumber *)SToIntMS { |
21 | - const double ms = self.doubleValue; | ||
22 | - const double s = ms * 1000; | ||
23 | - return @((NSUInteger)s); | 21 | + const double s = self.doubleValue; |
22 | + const double ms = s * 1000; | ||
23 | + return @((NSUInteger)ms); | ||
24 | } | 24 | } |
25 | 25 | ||
26 | @end | 26 | @end |
-
Please register or login to post a comment