I have a problem that I can not fix with a number, I’ll explain.
At one point in my code I call a function that returns an int, then I divide it and have a float with two decimal places.
My Ex 69033792 Fuzion back, I want to have to divide by 1024 and 67415.81
I write
NSInteger mem_0 = [self printMemoryInfo:@"0"];
[self.mem1 setText:[NSString stringWithFormat:@"%.2f",(mem_0/1024f)]];
but I do not return the decimal part … What’s wrong?
thanks
1 Answer