376Variable length of accuracy of float in NSString

float f = 1.23456;
 
NSLog(@"%.2f", f);
NSLog(@"%.0f", f);
NSLog(@"%.0f", f);

1.23
1
1.23456