NSLog(@"%@", [NSString stringWithFormat:@"%.0f", 1.0003]);NSLog(@"%@", [NSString stringWithFormat:@"%.0f", 1.9003]);NSLog(@"%@", [NSString stringWithFormat:@"%.0f", 1.5003]);NSLog(@"%@", [NSString stringWithFormat:@"%.0f", 1.4003]);// 输出1221