Most people facing problem in how to control the numbers after point in objective c you can use the following trick in order to achieve this
NSString *floatMin = [NSString stringWithFormat:@"%.01f",anyFloatVariable];
In this way you can only get two decimals after point
No comments:
Post a Comment