What is the best NSString format for displaying long decimal numbers? I get undesirable rounding that occurs when I try something like:
[NSString stringWithFormat:@"%g", calcResult];
Ideally, I would like the format:
xxx,xxx.xxxxxxxxxxxxxx
with a limit on total number of places collectively between the whole and decimal numbers.
So for example, if that limit were 10 places, the following would be the desired format:
1,234.567891
or
1,234,567.891
Thanks in advance.
Output: