Do I need to clear trailing zeros on floats without rounding? I need to show only the corresponding decimal places.
For example, if I have 0.5, I need it to show 0.5, not 0.500000. If I have 2.58328, I want to display 2.58328. If I have 3, I want to display 3, not 3.0000000. Basically, I need the number of decimal places to change.
ios objective-c
user74756e61
source share