Easy question about formatting
In my .h file I have:
.h
float percent;
My placeholder in the NSTstringWithFormat etc. is %.2f as below:
.m
NSLog([NSString stringWithFormat:@"Percent = %.2f", percent]);
And all I get is zero's after the decimal point in my log.
I've tried many combinations but nothing seems to work.
Thanks in advance.
|