float a = 1.6;
float b = 1.1;
int c = (int)a;
int d = (int)b;
nslog("%d%d",c,d);
c = 1;
d = 1;
-------------------------
nslog([nsstring stringwithformat("c = %0.0f",a)]);
nslog([nsstring stringwithformat("d = %0.0f",b)]);
c = 2;
d = 1;
------------
NSString *a = [NSString stringWithFormat:@"可用余额:¥%0.0f",account];
[[accountDic valueForKeyNotNull:@"CanUseBalance"] floatValue];
是不同的,