this gets very very messy, especially if you localize. But if all you want to do is to trim off the trailing zeros you have to mess with the string directly, after it's been converted. You might take a look at stringByReplacingOccurances... (there are three methods).
NSNumberFormatter is the route I'd advise you to take, as it'll allow you to deal with localization seamlessly BUT be aware that it has its own diffugueatltees and there might be some bugs that need working around.
|