NSNumber *weekNum = [dictionary valueForKey:@"inSeasonFor"];
NSDecimalNumber *newWeekNum = ([weekNum intValue] *2)/4;
NSLog(@"%", [newWeekNum decimalValue]);
如何将 weekNum*2 除以 4 并保留十进制值并打印它?
NSNumber *weekNum = [dictionary valueForKey:@"inSeasonFor"];
NSDecimalNumber *newWeekNum = ([weekNum intValue] *2)/4;
NSLog(@"%", [newWeekNum decimalValue]);
如何将 weekNum*2 除以 4 并保留十进制值并打印它?