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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-06-2010, 03:42 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 5
Default Add Thousands Separator to String

Hello everyone, I have string

Code:
NSString *myString = @"999999999999999999.99";
I get this string from XML that I parse. And I want to display that string with format

999.999.999.999.999.999,99

If I use NSNumberFormatter, I convert that string to NSDecimalNumber first, then convert back to String and that string always rounded to 1000000000000000000.00 (I don't want it). So I decided to display that string with that thousands separator format. Do you have any idea? I will appreciate it.
funk_ynot_24 is offline   Reply With Quote
Reply

Bookmarks

Tags
nsstring, thousands separator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:17 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0