Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-26-2008, 12:43 PM   #3 (permalink)
tawpie
Registered Member
 
tawpie's Avatar
 
Join Date: Jul 2008
Posts: 347
tawpie is an unknown quantity at this point
Default

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.
tawpie is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,022
Threads: 93,867
Posts: 401,929
Top Poster: BrianSlick (7,963)
Welcome to our newest member, mikel888
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:07 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.