I need to clear trailing zeros on floats without rounding? I need to only display relevant decimal places.
For example, if I have 0.5, I need it to show 0.5, not 0.5000
Use the following:
NSString* floatString = [NSString stringWithFormat:@"%g", myFloat];