Quick problem,
i need to have following conversion (double to string):
- 123.0 -> '123'
- 123.123 -> '123.123'
- 123.00001 -> '123.00001'
i tried
stringWithFormat but i cant find a way to show fractal part without trailing zeros, with a precision of current double value. In other words, if there is frac, show them all, no trailing zeros. If no frac - show only part before float separator.
I need to populate double value into UITextView or how it is called (aka TEdit)