NSLog(@"original float value = %f", [anNSNumber floatValue]);
float newFloat = [anNSNumber floatValue] - 1.0f;
NSLog(@"newFloat = %f", newFloat);
给我
原始浮点值 = 215987480044765184.000000
newFloat = 215987480044765184.000000
你如何简单地从 a 中减去 1 float
?